Twitter share button not counting tweets. Please help

kalamon
@kalamon Janusz Gorycki

Hi,

I am having a problem with the counter not counting. I have no idea what I could be doing wrong, but my counter stays at 0, even though I have used it a couple of times to do some testing.

Here is the code:

  1. <a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://www.kalamonsoft.com/gp7" data-url="http://www.kalamonsoft.com/gp7" data-text="G+7 - live feed of updates from your Google+ friends on your Windows desktop" data-count="horizontal" data-via="kalamonsoft">Tweet</a>
  2. <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

The problem is not caching, as the counter has stayed at zero for two weeks or more (yes, the button was used during that time).

The script is on this page: http://www.kalamonsoft.com/gp7

2 years 30 weeks ago

Replies

episod
@episod Taylor Singletary

There are times where the tweet counting mechanisms of the Tweet Button can miss some tweets, but something does seem stubborn about this URL. I'll file a bug with the team.

2 years 30 weeks ago
episod
@episod Taylor Singletary

Hi @kalamon,

In this case we don't have a count for you because the server you're running does not accept HTTP HEAD requests, which is currently required for proper Tweet Button counting functionality.

2 years 30 weeks ago
kalamon
@kalamon Janusz Gorycki

Hi @episod,

My server is Google Apps Engine. I guess I have to add some implementation. What should be the response to the HEAD request that will satisfy the tweet button?

@kalamon

2 years 30 weeks ago
kalamon
@kalamon Janusz Gorycki

Hi @episod,

I have implemented handling HEAD requests. Curl says this:

  1. C:\Users\kalamon\Desktop\curl-7.21.7-win64-ssl-sspi>curl -I http://www.kalamonsoft.com/dbjr
  2. HTTP/1.1 200 OK
  3. Content-Type: text/html; charset=utf-8
  4. Cache-Control: no-cache
  5. Expires: Fri, 01 Jan 1990 00:00:00 GMT
  6. Vary: Accept-Encoding
  7. Date: Thu, 22 Sep 2011 07:23:29 GMT
  8. Server: Google Frontend
  9. Transfer-Encoding: chunked

Nevertheless, the counter is still at zero, even though I have used it a while ago. Is there anything else I have to add?

@kalamon

2 years 30 weeks ago
brindhahoney
@brindhahoney brindha

hello sir,

tweet count does not increased. i ll used the above curl code please help me....

  1.     curl -I http://www.energextrichy.com/oddroad
  2.    HTTP/1.1 200 OK
  3.     Date: Thu, 06 Sep 2012 12:03:20 GMT
  4.     Server: Apache
  5.  Cache-Control: no-cache, no-store, must-revalidate, post-check=0, pre-check=0
  6.   Expires: Sun, 11 Mar 1984 12:00:00 GMT
  7.  Pragma: no-cache
  8.    Last-Modified: Thu, 22 Sep 2011 23:16:20 +0000
  9.  Vary: Cookie,Accept-Encoding
  10.    Connection: close
  11.   Content-Type: text/html; charset=utf-8
  12.  
  13.  
  14. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  18. <title>Untitled Document</title>
  19. </head>
  20.  
  21. <body>
  22.  
  23. <a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://www.example.com" 
  24. data-url="http://www.example.com" data-text="<?php echo "Testing app";  ?> " 
  25. data-count="horizontal" data-via="">Tweet</a>
  26. <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
  27. </body>
  28. </html>

Is this rite?

1 year 32 weeks ago
episod
@episod Taylor Singletary

Are you using example.com in your live examples or the URL of the page that it's sitting on? How are you testing/determining if the tweet button counter does or does not increase?

1 year 32 weeks ago
brindhahoney
@brindhahoney brindha

Thanks for your reply. No i'm not used example.com website just i put above code.. that's all..

1 year 32 weeks ago
brindhahoney
@brindhahoney brindha

which place i put the above code? that means curl function... please tel me the rite syntax...

1 year 32 weeks ago
kalamon
@kalamon Janusz Gorycki

oh, it started counting now :) - apparently it needed some time to wake up :)

2 years 30 weeks ago
episod
@episod Taylor Singletary

Glad to hear it, @kalamon!

2 years 30 weeks ago
Alltopstartups
@Alltopstartups Thomas Oppong

My tweets stopped counting about a week ago. I use a WordPress plugin (Digg Digg). I moved to a new server in that week. Could it be the HEAD requests you talk about or a cache problem. How do i rectify this-http://alltopstartups.com.

Thanks

2 years 30 weeks ago
joelambe
@joelambe Joe Lambe

We've had similar issues on our website (www.atlassian.com), using multiple configurations of the Tweet Button code. I've filed two support tickets ( #173633 and #4027376) about our issues and not received any repeatable solutions.

Most recently, we've had a helluva time getting the dynamic counter to work on this page (http://www.atlassian.com/en/communication-through-the-ages-infographic). Following the format on this documentation page (https://dev.twitter.com/docs/tweet-button), this is what our code currently looks like:

  1. <li id="twitter"> 
  2. <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> 
  3. <div> 
  4. <a href="http://twitter.com/share" class="twitter-share-button"
  5. data-url="http://bit.ly/infogrphc"
  6. data-counturl="http://www.atlassian.com/en/communication-through-the-ages-infographic"
  7. data-text="Communication Through The Ages [Infographic]"
  8. data-count="horizontal">Tweet</a> 
  9. </div></li> 

The code was stuck at 0 for weeks (we know the button was used, as clicking on the glaring 0 count revealed multiple tweets), and then eventually moved up to 2 where it's been stuck for another week. The support guy I was in touch with suggested something about URL caching of the Tweet Button, but I haven't gotten any answers there. We've tried a half-dozen configurations on this page, so I imagine that may be presenting some problems.

Help please? :)

2 years 30 weeks ago
kurrik
@kurrik Arne Roomann-Kurrik

Looks like the URL you're linking to doesn't support HEAD requests:

  1. $ curl -I http://www.atlassian.com/en/communication-through-the-ages-infographic
  2. HTTP/1.1 403 Forbidden
  3. Date: Thu, 22 Sep 2011 23:08:58 GMT
  4. Server: Apache-Coyote/1.1
  5. Content-Type: text/html;charset=UTF-8
  6. Content-Length: 964
  7. Vary: Accept-Encoding
2 years 30 weeks ago
kurrik
@kurrik Arne Roomann-Kurrik

I realized that this requirement wasn't really expressed that clearly in the documentation, so I added some info to the FAQ: https://dev.twitter.com/docs/tweet-button/faq#count-api-increment

2 years 30 weeks ago
joelambe
@joelambe Joe Lambe

THANK YOU for looking into this @kurrik. I'll have our web developer add the HEAD requests (I'm only a feeble marketing guy), and will report back.

2 years 30 weeks ago
kalamon
@kalamon Janusz Gorycki

Atlassian uses Google Apps Engine for its website?

2 years 30 weeks ago
my_thiti
@my_thiti Thiti Viriyamontree

my tweet button is not counting too ... how can i solve this problems.
here is link to my website ... http://diamonddiscus.com/chello

thanks in advance.

2 years 26 weeks ago
kurrik
@kurrik Arne Roomann-Kurrik

It looks like the count is going up on that page

2 years 26 weeks ago
hugoseijas
@hugoseijas Hugo Seijas

Hello guys,

I'm having the same issue here:
http://www.doodlersanonymous.com/2012-calendar/

The twitter buttons work on the other pages, just fine and that URL does give me a HTTP 200 response when I do a HTTP head request.

Any ideas what is going on?

Thanks in advance.

2 years 26 weeks ago
kurrik
@kurrik Arne Roomann-Kurrik

Did this ever get resolved? I no longer see the button on that page.

2 years 25 weeks ago
aproximation
@aproximation Wade McDaniel

I've got a strange issue slash question: will the twitter counts ever increment if my URLs are hash-based?

For example, take the URL http://www.daytrotter.com/#!/live/
That has been tweeted multiple times today, but the count is still zero. I've tried the HTML5 version of the button and the iframe version of the button, but all the counts remain zero.

Perhaps, because you can't make a HEAD request of a hashed page the counts will forever remain zero?

Thank you verrily!

2 years 25 weeks ago
alejandrolengua
@alejandrolengua Alejandro Lengua V.

We have problem with the following URLs where we have inserted the twitter_share button
however we have noticed that those buttons are stuck with the same value they had 24 hours ago.

Any ideas?
http://elrincondeendesa.pe/nota2011/proyectoarboleda/
http://elrincondeendesa.pe/nota2011/proyectolaronda/
http://elrincondeendesa.pe/nota2011/proyectobibliotecas/
http://elrincondeendesa.pe/nota2011/proyectofamiliares/

2 years 22 weeks ago
kurrik
@kurrik Arne Roomann-Kurrik

One thought is that you're inserting the URL in data-text, data-url, and data-counturl. You should try removing the URL from data-text (it doesn't need to be included in the Tweet body) and the URL you have for data-url does not need to be %-encoded.

  1. data-text="¿Y cuál es tu nota? - Arboleda de colores [http://elrincondeendesa.pe/nota2011/proyectoarboleda/] #nota2011 #Endesa" data-url="http%3A%2F%2Felrincondeendesa.pe%2Fnota2011%2Fproyectoarboleda%2F" data-counturl="http://elrincondeendesa.pe/nota2011/proyectoarboleda/"
2 years 22 weeks ago
alejandrolengua
@alejandrolengua Alejandro Lengua V.

Hello,
It seems that the coding issue fixed the problem and it is working and counting back (thank you for that!), however I don´t understand why it stopped working in the first place.

Appart of that, how can I make to count all the other tweets the button missed tracking?

I can list those tweets making use of Hootsuite as you can see here
http://avances.vo.pe/elrincondeendesa/proyectoarboleda.html

2 years 22 weeks ago
priapujangga
@priapujangga Pacifista

i have a problem with my tweet count.it always show zero even its already tweet.here is my blog, http://www.pacifista.my

2 years 22 weeks ago
priapujangga
@priapujangga Pacifista

i'm using plugin and there is not problem with the plugin.even i'm using tweetmeme plugin it is still have the same problem...

2 years 22 weeks ago
priapujangga
@priapujangga Pacifista

@kurrik, @episod or any others, can you help me?

2 years 22 weeks ago
kurrik
@kurrik Arne Roomann-Kurrik

Your blog takes way too long to respond to HTTP requests. Anything over 5 seconds will make Twitter's crawler time out.

  1. time curl -I http://pacifista.my/
  2. HTTP/1.1 200 OK
  3. Date: Mon, 21 Nov 2011 17:17:12 GMT
  4. Server: Apache
  5. X-Powered-By: PHP/5.2.17
  6. X-Pingback: http://pacifista.my/xmlrpc.php
  7. Connection: close
  8. Content-Type: text/html; charset=UTF-8
  9.  
  10.  
  11. real 0m6.002s
  12. user   0m0.003s
  13. sys    0m0.004s
2 years 22 weeks ago
brindhahoney
@brindhahoney brindha

which place the above code i put in my file? pls help me..

1 year 32 weeks ago
leandrolsguedes
@leandrolsguedes Leandro Guedes

The same thing is happening to one of the pages of my site. I use a WP plugin for the entire site, except for one page, where I needed to write a raw HTML.

For that page, I'm trying to use the custom button, but no count is shown: http://astronomia.blog.br/?page_id=2255

I tried to "reinstall" the button, but got nothing... The FB button is Ok, and the twitter buttons on the other pages are also Ok. Thanks for any help!

2 years 19 weeks ago
kurrik
@kurrik Arne Roomann-Kurrik

I see a count of 1 on that page. Did you find a fix?

2 years 19 weeks ago
Juanzo
@Juanzo Juan Manuel

Mind giving us a hand whenever you can @kurrik? I can't make the twitter button work at http://www.puntoandroid.com/

Here is the curl output:

  1. HTTP/1.1 200 OK
  2. Server: nginx
  3. Date: Fri, 16 Dec 2011 07:01:16 GMT
  4. Content-Type: text/html; charset=utf-8
  5. Connection: keep-alive
  6. X-Powered-By: PHP/5.3.8
  7. X-Drupal-Cache: HIT
  8. Etag: "1324015884-0"
  9. Content-Language: es
  10. Link: <http://www.puntoandroid.com/>; rel="canonical"
  11. Cache-Control: public, max-age=0
  12. Expires: Sun, 19 Nov 1978 05:00:00 GMT
  13. Vary: Cookie,Accept-Encoding
  14. Last-Modified: Fri, 16 Dec 2011 06:11:24 GMT
2 years 18 weeks ago
Niamhbg
@Niamhbg Niamh Gleeson

@kurrik would you be able to look at this? Counter is also not working: http://www.kitchensource.com/kitchen-islands/hs-ki908.htm . Thanks so much for your help.

2 years 15 weeks ago
Niamhbg
@Niamhbg Niamh Gleeson

i see it is updating now. Thanks anyway :)

2 years 15 weeks ago
jasey_lucama
@jasey_lucama James Michael Caluya

I do have the same trouble counting my share in our blog: http://blog.yourfreedomproject.com

Below is the code that I used:
Tweet
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];
if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");

2 years 10 weeks ago
Smurfettweeter
@Smurfettweeter Amal KHTIRA

I have the same problem with my blog : http://bookssecrets.blogspot.com/

the code I used:
Tweet
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");

what can be the problem? thanks in advance for your help.

2 years 9 weeks ago
episod
@episod Taylor Singletary

Please follow this issue for updates on this problem: Issues with Tweet Button Counting

2 years 9 weeks ago
kamilmushtaq
@kamilmushtaq Kamil Mushtaq

@kurrik, you help required as we are also facing the same problem on my website. I have also checked the HTTP HEAD request using the website "http://web-sniffer.net/" for both data-url and data-counturl and got the result, you can also check from on this website though i dont know how to check Http HEAD request from cURL.

Status: HTTP/1.1 200 OK

Can you please help us to figure out that what is the problem and why tweet count in not increasing or we are missing something?

Here is the snippet of tweet button page including the function in javascript,

  1. <div id="custom-tweet-button">
  2. <a href="https://twitter.com/share?" id="cphMain_ucCauseHomeOrg_ctrlSocialMedia_aTwitter" data-show-screen-name="false" data-url="https://ers.systemsltd.com/RSDev/Cause/CauseHome.aspx?CauseID=211" data-text="Raising Social:" data-counturl="https://ers.systemsltd.com/RSDev/Cause/CauseHome.aspx?CauseID=211" class="twitter-share-button" target="_blank" data-count="horizontal" data-lang="en" data-via="RaisingSocial">Tweet</a>
  3. </div> 
  4.  
  5. <script language="javascript" type='text/javascript'>
  6.             !function (d, s, id) 
  7.             {
  8.                 var js, fjs = d.getElementsByTagName(s)[0];
  9.                 if (!d.getElementById(id)) 
  10.                 {
  11.                     js = d.createElement(s);
  12.                     js.id = id;
  13.                     js.src = "//platform.twitter.com/widgets.js";
  14.                     fjs.parentNode.insertBefore(js, fjs);
  15.                 }
  16.             }
  17.             (document, "script", "twitter-wjs");
  18.         </script>

Many thanks in advance :)

2 years 8 weeks ago
episod
@episod Taylor Singletary

You may be being effected by this bug: Issues with Tweet Button Counting

2 years 8 weeks ago
chpmeclis
@chpmeclis chpmeclis

i'm new into Twitter and I added a sample tweet button in my website. it seems to work incorrect. for some hours it stayed at 0 even if i make tweets from it from different accounts and then now it's 7 and even if currently there is only 1 tweet from that button. is there anyone who can help me?

URL is: http://www.ceycey.com/1.html

HTML is:

  1. <head>
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  3. <title>Dünya Kadınlar Günü</title>
  4. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
  5. </head>
  6. <body>
  7. <a href="https://twitter.com/share&text=8 Mart Dünya Kadınlar Günü Kutlu Olsun!" class="twitter-share-button" data-url="http://www.ceycey.com/1.html" counturl="http://www.ceycey.com/1.html" data-via="chpmeclis" data-lang="tr">Tweet</a>
  8. </body>
2 years 6 weeks ago
mikaelkessler
@mikaelkessler Mikael Kessler

Hey @kurrik, I'm experiencing the same thing with a Tweet button that I've added to a Facebook tab. Could you check out my implementation and let me know what I might be doing wrong?

Thanks.

  1. <a href="https://twitter.com/share" class="twitter-share-button" data-url="https://www.facebook.com/HTCau?sk=app_245596055531812" data-counturl="https://www.facebook.com/HTCau?sk=app_245596055531812" data-text="HTC One | Amazing camera. Authentic sound."></a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
2 years 6 weeks ago
sherwin018
@sherwin018 sherwin hermogenes

i have the same problem with my site http://www.sherwinhermogenes.com/

2 years 4 weeks ago
BsCsProjects
@BsCsProjects BsCsPrOjets

my twitter feed my display in widgets other one feeds display..help

2 years 4 weeks ago
SkeinDev
@SkeinDev Mihhail Arhipov

I have this issue with our website (http://www.blottr.com)
For example this story http://www.blottr.com/georgia-salpa-takes-advantage-warm-weather-cone has at least 4 tweets, but shows 0 all the time.

I checked this time responce was lower than 5 seconds

  1. time curl -I http://www.blottr.com/georgia-salpa-takes-advantage-warm-weather-cone
  2. HTTP/1.1 200 OK
  3. Server: Apache/2.2.3 (CentOS)
  4. X-Powered-By: PHP/5.2.17
  5. X-Drupal-Cache: HIT
  6. Etag: "1333039034-0"
  7. Content-Language: en
  8. X-Generator: Drupal 7 (http://drupal.org)
  9. Link: </georgia-salpa-takes-advantage-warm-weather-cone>; rel="canonical",</node/14426>; rel="shortlink"
  10. Cache-Control: public, max-age=60
  11. Last-Modified: Thu, 29 Mar 2012 16:37:14 +0000
  12. Expires: Sun, 19 Nov 1978 05:00:00 GMT
  13. Vary: Cookie,Accept-Encoding
  14. Content-Type: text/html; charset=utf-8
  15. Content-Length: 75821
  16. Date: Thu, 29 Mar 2012 16:38:50 GMT
  17. X-Varnish: 1563418990
  18. Age: 0
  19. Via: 1.1 varnish
  20. Connection: keep-alive
  21.  
  22.  
  23. real   0m0.067s
  24. user   0m0.000s
  25. sys    0m0.000s

Can you look at the buttons and possibly say what's the issue or is it related to https://dev.twitter.com/issues/48 ?

2 years 3 weeks ago
shail143
@shail143 shailesh

in my site also count is not working the link of my site is http://knowledgecredits.com

any solution ? count working fine in case of G+ , FB and etc ...

Thanks in advance

2 years 2 weeks ago
nasironline90
@nasironline90 Nasir Hussain

same problem exists, counter is not incremented after a new tweet, it is always shows zero
my code is

  1. <a href="https://twitter.com/share" data-size="large" data-text="live feed of updates from your Google+ friends on your Windows desktop" class="twitter-share-button" data-lang="en">Tweet</a>
  2.  
  3. <script>
  4.         !function(d,s,id)
  5.         {
  6.             var js,fjs=d.getElementsByTagName(s)[0];
  7.             if(!d.getElementById(id))
  8.             {
  9.                 js=d.createElement(s);
  10.                 js.id=id;
  11.                 js.src="//platform.twitter.com/widgets.js";
  12.                 fjs.parentNode.insertBefore(js,fjs);
  13.              }
  14.          }
  15.          (document,"script","twitter-wjs");
  16.       </script>
1 year 50 weeks ago
episod
@episod Taylor Singletary

The issue Issues with Tweet Button Counting is still in effect and may explain your counting issues. Can you share the URL you're placing this button on?

1 year 50 weeks ago
NGTran
@NGTran Angeline Tran

I'm also have trouble with this twitter counter incrementing. http://www.sears.com/my-funny-valentine-infographic/dap-120000000230103

I checked the HTTP HEAD request and it was 200, so that's not the problem. Any help would be great. It's driving me crazy...Thanks!

1 year 48 weeks ago
episod
@episod Taylor Singletary

Hi Angeline,

I see the counter currently indicates one tweet on that page and I'm also only seeing a single tweet with a URL pointing to that page. I went ahead and tweeted the link from one of my test accounts, and the counter should increment soon (it's heavily cached, but I've already observed the non-cached value having updated). You should see it indicate at least "2" shortly.

1 year 48 weeks ago
soulclapbeats
@soulclapbeats SoulClap

got the same problem, i had like 906 counts but now 71 on my webpage http://www.soulclapbeats.com

1 year 46 weeks ago