Title: Creating Google Analytics events
Last modified: August 21, 2016

---

# Creating Google Analytics events

 *  [pk2000](https://wordpress.org/support/users/pk2000/)
 * (@pk2000)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/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](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](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.

 * ![](https://ps.w.org/simple-share-buttons-adder/assets/icon-256x256.png?rev=2661516)
 * [Simple Share Buttons Adder](https://wordpress.org/plugins/simple-share-buttons-adder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-share-buttons-adder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-share-buttons-adder/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-share-buttons-adder/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [pk2000](https://wordpress.org/support/users/pk2000/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/creating-google-analytics-events/)
 * Status: not resolved