Getting data-counturl to populate


I’ve tried putting the tweet button on a few of my websites, but noticed the count does not go up. I’ve noticed that this only works if you have the data-counturl in the code. How do you do this if you have the tweet button in the template of a blog, and you want the tweet button to tweet the page the user is on, naturally you can’t prefill that data-counturl when you embed it, it needs to fill that code based on the page the user is on.

I’ve tried looking at your help files on this, but can’t find the correct way to do it.



Most blogging engines support template variables which will inject the current page permalink into the rendered template. You would use such a mechanism to populate the rendered value for data-counturl.

closed #3

closed #4