[twitter-dev] Re: Twitter Button Counts
Hi Matt Pursuant to my last post, I checked what the tweet button was sending and what it was getting back from the count api script type=text/javascript src=http://urls.api.twitter.com/1/urls/ count.json?url=http://www.nzherald.co.nz/sport/news/article.cfm? c_id=4amp;objectid=10670662amp;callback=twttr.receiveCount/ script is what is being requested in the tweet button iframe, and the count API returns twttr.receiveCount({count:0,url:http://www.nzherald.co.nz/sport/ news/article.cfm/?c_id=4}) Which would explain why all our counts on all our articles are 0 - we need to count our full canonical URL, the one set in data-counturl. Cheers anne On Aug 26, 12:56 pm, themattharris thematthar...@twitter.com wrote: Hi Jonathan, The counting of URLs like yours will count correctly for Tweets from now on. Thanks for letting us know about the problems you were having so we could track the bug down and fix it. Best, Matt On Aug 24, 6:30 pm, Jonathan Strauss jonat...@snowballfactory.com wrote: Ah, canonicalization. Thanks Matt. As you probably know, those URL parameters (other than awesm=) are standard Google Analytics tracking parameters. So, it's something that should probably be handled better by the counter code. But at least we now know the root cause. Thanks, -jonathan On Aug 24, 5:23 pm, Matt Harris thematthar...@twitter.com wrote: Hi Jonathan, The count we use is completely separate to search so no inference should be drawn from there. As well as that the search index is only 5 or so days now so anything Tweeted before then won't be found. When counting URLs we count the final destination of a shortURL so it doesn't matter which is used. Knowing this I took a look at the code you shared and it looks good, but here's the problem I noticed. The URL being Tweeted is not the URL you placed in data-counturl. You can see this when you hover over the short URL in the backtype results. Instead of: http://blog.snowballfactory.com/2010/08/15/tweet-button-with-shorteni... You are Tweeting: http://blog.snowballfactory.com/2010/08/15/tweet-button-with-shorteni... When I replaced your data-counturl with the Tweeted URL I was shown a count of 6. In this case 6 makes sense as this is the number of t.co links created from that longer query string URL. The 3 other URLs are not counted recognised because they have different utm_content and awesm values. I've passed this information onto theTweetButtonteam who are working on ways to identify that the URLs like this below are collapsed into the correct URL: http://blog.snowballfactory.com/2010/08/15/tweet-button-with-shorteni.. I hope this explains why your situation occurs, Best, Matt On Tue, Aug 24, 2010 at 10:46 AM, Jonathan Strauss jonat...@snowballfactory.com wrote: Matt, I've been using data-counturl from the start and still seeing 0 counts. Here is the source for thebuttonon http://blog.snowballfactory.com/2010/08/15/tweet-button-with-shorteni... which is showing 0 tweets: a href=http://twitter.com/share; class=twitter-share-button data- url=http://awe.sm/59O75; data-counturl=http:// blog.snowballfactory.com/2010/08/15/tweet-button-with-shortening-for- wordpress/ data-text=TweetButtonwith Shortening for WordPress data-count=vertical data-via=snowballfactory data- related=jhstrauss:Author of the postTweet/ascript type=text/ javascript src=http://platform.twitter.com/widgets.js;/script As you can see, BackType is indexing the tweets correctly: http://www.backtype.com/page/blog.snowballfactory.com%2F2010%2F08%2F1... Yet Twitter search doesn't appear to be: http://search.twitter.com/search?q=http%3A%2F%2Fblog.snowballfactory From what I can see, the issue appears to be related to what short URLs Twitter is choosing to index for the count. Thanks, -jonathan On Aug 24, 12:10 am, Matt Harris thematthar...@twitter.com wrote: Hey everyone, This is a repeat of a message on another thread. I've updated theTweetButtondocs today with information which I hope will answer a number of your questions. In particular the example about using a short URL with the parameter data-counturl should help those of you whosecountsare staying at 0. http://dev.twitter.com/pages/tweet_button#using-shorturl For reference the documentation URLs are: http://dev.twitter.com/pages/tweet_button and http://dev.twitter.com/pages/tweet_button_faq Hope that helps, Matt On Mon, Aug 23, 2010 at 2:10 AM, artesea ryancul...@gmail.com wrote: Just tried something else, I click on atweetcontaining one of my short urls this actually redirects to http://www.libdemvoice.org/?p=20818utm_source=tweetutm_medium=twitt... by setting data-counturl=http://www.libdemvoice.org/?p=20818; it finallycountsall the
[twitter-dev] Re: Count not working for url's with 2+ parameters
If I understand Lukas correctly, he doesn't want to send two URLs. He wants the count to work properly on URLs with more than two parameters. The count API seems to be stripping out all but the first URL param. So if you have a page http://www.example.com/page.html?param1=fooparam2=bar the count API counts http://www.example.com/page.html?param1=foo - not the proper URL. Even if you set the canonical URL in the data-counturl attribute. Cheers, anne On Aug 31, 11:11 am, Matt Harris thematthar...@twitter.com wrote: Hey Lukas, TheTweetButtoncurrently allows you to share one URL at a time. Can you give an example of what you require two URLs on onebuttonfor? Best, Matt On Sun, Aug 29, 2010 at 3:11 PM, Lukas lukas.winzenr...@gmail.com wrote: Hi Thetweetbuttondoes not count if the data-url has more than 1 url parameters http://www.jobscout24.ch/JS24Web/JobView/JobDetail.aspx?lng=dewl=1j... (this is the canonical url) The request to the count api takes only the last one of the parameters into accout, all the others are lost ;-( Is there a workarouond for this issue (none of the encodings i tried seems to work, even with use of data-counturl) or does anyone know if theres a fix planned for this? Thanks Lukas -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list Change your membership to this group:http://groups.google.com/group/twitter-development-talk?hl=en -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
[twitter-dev] Re: Twitter Button Counts
Hi Matt We are having the same problem with counts not updating on our site. We've tested with several people tweeting the same link (using the tweet button), and still the count shows 0. The page in question is http://www.nzherald.co.nz/sport/news/article.cfm?c_id=4objectid=10670662 a href=http://twitter.com/share; class=twitter-share-button data-count=horizontal data-via=nzherald data-related=HeraldOnlineEnt:nzheraldtv data-url=http://www.nzherald.co.nz/sport/news/article.cfm? c_id=4objectid=10670662ref=twitter data-counturl=http://www.nzherald.co.nz/sport/news/article.cfm? c_id=4objectid=10670662 data-text=Top ten cricket scoundrels - Sport - NZ Herald NewsTweet/ a From everything I've read in the forums and the tweet button FAQ this should provide us with correct counts. We are still seeing 0 tweets for every article in our highly trafficked (and retweeted) site. Can you look into this please? Otherwise I know we will be asked to remove the tweet button next week as it is not a good look. Cheers, anne On Aug 26, 12:56 pm, themattharris thematthar...@twitter.com wrote: Hi Jonathan, The counting of URLs like yours will count correctly for Tweets from now on. Thanks for letting us know about the problems you were having so we could track the bug down and fix it. Best, Matt On Aug 24, 6:30 pm, Jonathan Strauss jonat...@snowballfactory.com wrote: Ah, canonicalization. Thanks Matt. As you probably know, those URL parameters (other than awesm=) are standard Google Analytics tracking parameters. So, it's something that should probably be handled better by the counter code. But at least we now know the root cause. Thanks, -jonathan On Aug 24, 5:23 pm, Matt Harris thematthar...@twitter.com wrote: Hi Jonathan, The count we use is completely separate to search so no inference should be drawn from there. As well as that the search index is only 5 or so days now so anything Tweeted before then won't be found. When counting URLs we count the final destination of a shortURL so it doesn't matter which is used. Knowing this I took a look at the code you shared and it looks good, but here's the problem I noticed. The URL being Tweeted is not the URL you placed in data-counturl. You can see this when you hover over the short URL in the backtype results. Instead of: http://blog.snowballfactory.com/2010/08/15/tweet-button-with-shorteni... You are Tweeting: http://blog.snowballfactory.com/2010/08/15/tweet-button-with-shorteni... When I replaced your data-counturl with the Tweeted URL I was shown a count of 6. In this case 6 makes sense as this is the number of t.co links created from that longer query string URL. The 3 other URLs are not counted recognised because they have different utm_content and awesm values. I've passed this information onto theTweetButtonteam who are working on ways to identify that the URLs like this below are collapsed into the correct URL: http://blog.snowballfactory.com/2010/08/15/tweet-button-with-shorteni.. I hope this explains why your situation occurs, Best, Matt On Tue, Aug 24, 2010 at 10:46 AM, Jonathan Strauss jonat...@snowballfactory.com wrote: Matt, I've been using data-counturl from the start and still seeing 0 counts. Here is the source for thebuttonon http://blog.snowballfactory.com/2010/08/15/tweet-button-with-shorteni... which is showing 0 tweets: a href=http://twitter.com/share; class=twitter-share-button data- url=http://awe.sm/59O75; data-counturl=http:// blog.snowballfactory.com/2010/08/15/tweet-button-with-shortening-for- wordpress/ data-text=TweetButtonwith Shortening for WordPress data-count=vertical data-via=snowballfactory data- related=jhstrauss:Author of the postTweet/ascript type=text/ javascript src=http://platform.twitter.com/widgets.js;/script As you can see, BackType is indexing the tweets correctly: http://www.backtype.com/page/blog.snowballfactory.com%2F2010%2F08%2F1... Yet Twitter search doesn't appear to be: http://search.twitter.com/search?q=http%3A%2F%2Fblog.snowballfactory From what I can see, the issue appears to be related to what short URLs Twitter is choosing to index for the count. Thanks, -jonathan On Aug 24, 12:10 am, Matt Harris thematthar...@twitter.com wrote: Hey everyone, This is a repeat of a message on another thread. I've updated theTweetButtondocs today with information which I hope will answer a number of your questions. In particular the example about using a short URL with the parameter data-counturl should help those of you whose counts are staying at 0. http://dev.twitter.com/pages/tweet_button#using-shorturl For reference the documentation URLs are: http://dev.twitter.com/pages/tweet_button and http://dev.twitter.com/pages/tweet_button_faq Hope that helps,