Active Share by OrangeSoda
Trying to add Google Analytics tracking without success (1 post)

  1. markbaa
    Posted 4 years 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>
    	<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>'

    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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Active Share by OrangeSoda
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic