WordPress.org

Support

Support » Plugins and Hacks » Active Share by OrangeSoda » [Plugin: Active Share by OrangeSoda] Trying to add Google Analytics tracking without success

[Plugin: Active Share by OrangeSoda] Trying to add Google Analytics tracking without success

  • Hiya

    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?

    http://wordpress.org/extend/plugins/active-share-by-orangesoda/

  • The topic ‘[Plugin: Active Share by OrangeSoda] Trying to add Google Analytics tracking without success’ is closed to new replies.
Skip to toolbar