How to Integrate Tweetmeme and Su.pr to Increase Your Blog Traffic

Recently, the fine people at AEXT.net wrote an article on how to integrate Tweetmeme and the Su.pr URL shortener. If you aren’t familiar, Su.pr is Stumbleupon’s URL shortening service. It appends a sharing toolbar which allows users to vote or review the page. As many bloggers know, the more “thumbs-up” an article receives, the more popular it will be on Stumbleupon.

In order for this to work, you must use the Tweetmeme button code found here. It looks something like this:
[javascript highlight=”5,6″]
<script type="text/javascript">
tweetmeme_style = ‘compact';
tweetmeme_url = ‘<?php the_permalink() ?>';
tweetmeme_source = ‘Twitter_username_here';
tweetmeme_service = ‘URL_shortener_here';
tweetmeme_service_api = ‘API_key_here';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
[/javascript]

For the purposes of this short tutorial, the focus is on lines 5 and 6. To get your API key, head over to http://su.pr/ and login with your Stumbleupon account. Then, go to the Settings page and you should be able to find your API key there.

Click to enlarge

The Result:

Some cautionary words:

With all the craze over URL shorteners in the age of Twitter, please be wary that URL shortening services can fail. As we saw with tr.im recently, shortened links on web pages may suddenly go dead and you will have quite a mess to fix (though it may not be as catastrophic as the situation in the Gulf coast). Dewitt Clinton had some interesting thoughts on URL shorteners and even discussed Twitter’s recent announcement regarding their plans for creating their own link service.

I absolutely love this tip since Stumbleupon is currently my top referring site. What are your thoughts? Let me know in the comments section below!

Photo by mobology

  • http://chetanbhasin.com/ Chetan Bhasin

    I don’t really understand how you do that! What about that button code? What is that code? The link that you have provided is not working. Pleas help!