BACK TO DIRECTORY

GA Link Tracker

by project107

3.7
(3 ratings)

A tiny WordPress plugin to track events of link clicks in the main content area of the site. Install it and forget about it.

Links will show up under Events in the Analytics site, and will have a category of ‘Links’, a label of ‘PageID: CURRENT_PAGE_URI’, and the value of the href of the link being tracked.

Example of code added to properly formed URLs in main post content:

<a onclick="ga('send', 'event', 'Links', 'click', 'http://twitter.com/chris_dickow');" href="http://twitter.com/chris_dickow">@chris_dickow</a>

The above example assumes the href of the link is: http://www.myurl.com/my_blog/my_link.html

Plugin Details

Active Installs
10
Total Downloads
2,878
Version
2.2
Requires WP
3.3
Requires PHP
Tested Up To
4.0.38
Added
2013-04-09
Last Updated
2014-09-04 1:53pm GMT

Ratings

5
2
4
0
3
0
2
0
1
1