Twitter count works locally and on staging but on production stays at zero


#1

After combing through the docs, I haven’t been able to find an answer for this.

I’m attempting to build a page with multiple articles. Each article has its own tweet button and thus there are multiple tweet buttons on the page with their own unique count of tweets. I’ve got it to work locally and on a live staging site. However, when I pushed the code to production, the tweet counts are frozen at 0.

Link to page with broken buttons: http://www.mybasis.com/?p=2794

Button Code:

<div>
<a href="https://twitter.com/share" class="twitter-share-button tweet-anchor" data-url="http://www.example.com/page/?article-title" data-counturl="http://www.example.com/page/?article-title" data-text="...tweet content...">Tweet</a>
</div>
<script>
window.twttr = (function (d,s,id) {
  var t, js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return; js=d.createElement(s); js.id=id;
  js.src="https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs);
  return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } });
}(document, "script", "twitter-wjs"));
</script>

#2