Wednesday, October 6, 2010

New Twitter Tweet Button Passes Page Rank

Twitter's new tweet button is now the most effective widget for sharing a web page on Twitter. It requires code similar to the following:
<a class='twitter-share-button' data-count='horizontal' data-via='rjmiller' href='http://twitter.com/share' >Tweet</a><script src='http://platform.twitter.com/widgets.js' type='text/javascript'/>
Unfortunately (and unnecessarily), the generated Twitter code passes your site's search engine credibility (i.e., page rank) to Twitter because the "href" attribute links to a Twitter page. Instead, you can simply leave out the href attribute and add a name attribute. The other option is to add a rel="nofollow" attribute (also seen below).
<a class='twitter-share-button' data-count='horizontal' data-via='rjmiller' name='TweetButton' rel='nofollow'>Tweet</a><script src='http://platform.twitter.com/widgets.js' type='text/javascript'/>

No comments:

Post a Comment