I am a design engineer at Automattic, the company behind WordPress.com, working with the Theme Team to address the design concerns of millions of WordPress users.

Social Traffic Monitor WordPress Plugin

Note: watch the Social Traffic Monitor section of my blog for information on updates to this plugin.

Social Traffic Monitor is a plugin for WordPress blogs that monitors your blog traffic for activity coming from social news or bookmarking sites.

When someone clicks on a link to your blog on one of the major social news or bookmarking sites (currently Digg, Netscape, Reddit, Newsvine, Fark, Slashdot, Del.icio.us, and StumbleUpon), the plugin begins to log the visits to that page. This data can then be displayed in the form of a graph of visitors per hour.

Graph produced by the Social Traffic Monitor WordPress plugin

Each vertical line represents one hour, and you can customize how many hours the graph shows. You can also choose to display and link to the top referrers below the graph – a great way to prompt other users to return to those sites and vote for your story.

To install, unzip social-traffic.php and upload it to the wp-content/plugins/ directory of your blog. Activate the plugin from your Administration panel, and then, using the theme editor, add this line of code wherever you want to display the chart and/or referrers:

	<?php social_traffic(); ?>

Alternatively, you can supply some custom HTML to display along with the chart and/or referrers, if they are displayed by calling the plugin like so:

	<php social_traffic('<div>%s</div>'); ?>

The “%s” will be replaced by the output created by the plugin. In this instance, the div tags will only be output if the plugin has something to display.

Note: this plugin will only display the graph and/or referrers on single-post pages, and it won’t display anything unless that post has been accessed from one of the social news sites.

The latest version of Social Traffic Monitor is 1.2 (released on 2007-01-26).


19 Responses to “Social Traffic Monitor WordPress Plugin”

  1. Jeremy Gadd Says:

    Hi. Looks good from what I see of it on your site, but I can’t get it working on mine. I use WP 2.3. I have created a widget and added the code to it but all it shows is the title ‘Social Traffic’. I have tested it by clicking a link to an article of mine on bookmarked on Reddit but still no output.

  2. suicidalsam Says:

    wow, this is a great plugin, found it while searching for a torrent stats plugin. your plugin will come in real handy for me as I receive a lot of traffic from social networking sites, esp fark and SU.

  3. leo Says:

    good plugin. Actually i want to find a stumbleupon plugin that can automatically post when I have new post on my blog

  4. Promo2 Says:

    Perfect idea! I am going to try to work with your plugin.
    Question: is it piossible to add other social sites and remove some from list?

  5. RoMarketing Says:

    Excelent plugin, I’ll use it on my network of sites.

  6. Jessicabype Says:

    I love it! That is way cool man! The steps weren’t that complicated too, which is great.

  7. ektel Says:

    I have bookmarked and I hope to use it in the near future. Anyway thanks

  8. Greg Says:

    Great script and useful

  9. Robert Lönn Says:

    This is a cool tool and something I will probably push for to my users that has wordpress.

    Any plans on developing this further?

    Anyway, Thank you!

  10. A4D Says:

    Does this plugin still work, please?

  11. DeepRes Tasar?m Says:

    Does this plugin still work :|

  12. DP Says:

    I’m wondering if this plugin is working as well. Had it up on my site now for a few weeks and no stats are showing.

  13. Sunite Says:

    Kool WordPress Mod :)

  14. how2exercise Says:

    Does this plugin still work?

  15. Kulin Shah Says:

    Ultimate tool to monitor the social network inbound links

  16. John Says:

    Hey Christopher, this plugin looks really good and professional. I’ve just no started using it and I already love it.

  17. Emma Says:

    Very nice. Congratulations for your plugin. It saved me some time :)

  18. Donn Says:

    Really, is it still works???

  19. Eugene Drewes Says:

    I am now not certain the place you are getting your info, however good topic. I must spend some time studying more or understanding more. Thanks for fantastic info I used to be searching for this info for my mission.


Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.