Creating Google Analytics events
-
Hi
It would be great to add a Google Analytics event to each lin click so you can see in your stats where the sharing users are coming from and how they interact with the page. I put it in manually for my own site but this would be a cool easy feature to add.
onClick=”_gaq.push([\’_trackEvent\’, \’Sharing\’, \’Twitter\’, \” . $urlCurrentPage . ‘\’]);”
onClick=”_gaq.push([\’_trackEvent\’, \’Sharing\’, \’Facebook\’, \” . $urlCurrentPage . ‘\’]);”
etc.
PS more info here https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
PSS And here’s the link to the plugin code with the GA tracker https://dl.dropboxusercontent.com/u/5300302/simple-share-buttons-adder.php
Thanks
Priit Kallas
Fixwillpower.com
The topic ‘Creating Google Analytics events’ is closed to new replies.