WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. markbaa
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic