Tweetbacks and Re-Tweets for Blogger blogs

twitter-logTwitter has grown to be one of the most successful social media services, so it’s no wonder bloggers seek to utilize many Twitter based applications to enhance the community aspect of their blogs.

Tweetbacks and re-Tweets are particularly good functions to include in our blogs: Tweetbacks demonstrate how posts are discussed and syndicated through Twitter, while re-Tweets offer an easier means for readers to Tweet about our posts.

While there are plugins available for WordPress users to add Twitter functionality to their blog templates, Blogger users need to edit their templates directly in order to add these functions. In this article, I’ll explain how to add Tweetbacks and re-Tweet functions for Blogger powered sites.

Dan Zarella’s TweetBacks

Tweetbacks act like trackbacks; but rather than list links to a specific post, these will list any found Tweets about the specified post and include a thumbnail of the author’s Twitter avatar.

Dan has made this functionality incredibly easy to add to our blogs. All we need to do is paste a single line of code where we want the Tweetbacks to appear.

Blogger users could easily add this code to an HTML/JavaScript widget in the sidebar. Once the page has loaded, the script will pick up any Tweetbacks associated with the current page.

To make this function more interesting, you may prefer to add Tweetbacks below your Blogger comments section instead. This is surprisingly easy, though you will need to edit your blog’s template code in order to make this work.

  1. Go to Layout>Edit HTML in your Blogger dashboard. Ensure you have checked the “Expand widget templates” box.
  2. Search for this line in your template:
    <:b:includable id='comments'/>
  3. Immediately after this line, paste the following section of code:
    <script src=""></script>
  4. Preview your template which will ensure you have made no errors when pasting the code – if you have, the preview page will not load and you will be informed of the cause for the error. If all is well, proceed to save your template.

Now your Tweetbacks will appear on post pages, right after the comments section. If no Tweetbacks have been registered for this article, the message “No Tweetbacks Yet” will be displayed instead.

Learn more about Dan Zarella’s Tweetbacks

Add a re-Tweet counter with TweetMeme

Of all the “re-Tweet” buttons I have seen, the TweetMeme counter has proved the most interesting. This button adds a counter to display how many times the post has been “re-tweeted” along with a link for readers to easily Tweet about your posts:

To add the TweetMeme button to your Blogger template, you will need to override the automatic collection of the URL by adding the following lines of code in your template where you would like the button to appear:

<script type="text/javascript">
tweetmeme_url = '<data:post.url/>';
<script type="text/javascript" src=""> </script>

If you prefer to add the button below each of your posts, you can paste this code in the post-footer section of your blog. However, many prefer to add this at the top right of their posts in similarity to the Digg button trend.

To add the button to the top of your Blogger posts, here is what to do:

  1. Go to Layout>Edit HTML in your Blogger dashboard; ensure you have checked the “expand widget templates” box.
  2. Find this line of code in your template:
    <div class='post-body'>

    If you cannot find this exact line of code, search for <data:post.body/> and look for the preceding line.

  3. Immediately after this line, paste the following section of code:
    <span style="float: right; margin: 0 0 5px 5px;"><script type="text/javascript">
    tweetmeme_url = '<data:post.url/>';
    <script type="text/javascript" src=""> </script></span>
  4. Now preview your template: you should now see the TweetMeme button appears to the top right of each post. If all is well, save your template and enjoy this new functionality.

Final thoughts

Using these Twitter-based functions in your Blogger powered blog is an ideal means for Twitter users to assist syndication of their posts, increase popularity of their blogs and create an increased sense of community around thier sites.

I hope you have found these explanations of how to implement Tweetbacks and re-Tweets useful for addition to your Blogger templates. Please feel free to leave your comments and suggestions below.


Disclosure: In full disclosure, it is safe to assume that the site owner is benefiting financially or otherwise from everything you click on, read, or look at while on my website. This is not to say that is the case with all content, as all publications on the site are original and written to provide value and references to our audience.


  1. Roseli A. Bakar March 31, 2009
  2. Ummagumma September 9, 2010
  3. @voxie September 11, 2010
  4. @nicoartistico November 6, 2010
  5. kai December 11, 2010