Search code examples
javascriptgoogle-analyticstumblrgoogle-analytics-apipinterest

Google Social Interaction Analytics with the Tumblr share button?


Does someone knows how to use Google Social Interaction Analytics with the Tumblr share button? (which is hosted on my Wordpress blog)

I've done it for Facebook and Twitter (i.e: http://visualise.ca/anne-au-cherry)

There is no information about in google's docs : http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.html

P.S.: What about the Pinterest button? ;-)


Solution

  • The Tumblr Share button doesn't have any callbacks for completing the share. However, its just a link to another page. So, you can trivially add click-tracking to it:

    $(".tumblr a").click(function(){
       _gaq.push(["_trackSocial", "Tumblr", "Click"]);
    });
    

    The Pinterest Pin It button is in an iframe, has no JS API, no click tracking, no "on pin" callback. So, you're lost there in terms of tracking.