Support » Plugins and Hacks » Active Share by OrangeSoda » [Plugin: Active Share by OrangeSoda] Trying to add Google Analytics tracking without success
5 years, 7 months ago
I want to add tracking to the script so I can see when people click. For example, I tweaked this code in active-share.php:
"code" => '<a name="fb_share" type="box_count" href="http://www.facebook.com/sharer.php" onclick="pageTracker._trackEvent(\'BlogShare\', \'Click\', \'Facebook\');" >Share</a>
So when someone clicks, the trackevent will fire and log it.
However, it’s not firing. I have a look in firebug to see what is going on and it is never requested. My guess is the facebook js file is somehow grabbing the onclick event.
Any suggestions for how to get this working?