Wordpress: xooAnalytics
| Author: | Xooxia |
| Version: | 1.4.2 |
| Author Homepage: | http://xooxia.com/ |
| Plugin home: | Visit |
| License: | N/A |
This plugin will mark any external links (those with absolute URLs) and email links for tracking purposes with Google Analytics. Added support to exclude your internal domain name under the Options menu.
It basically just searches the post content for a regular expression match for a link. If the link contains an absolute URL, then it adds the urchinTracker() function as an onclick event. When a user clicks on that link, the urchinTracker function saves that click as a hit on that link.
The code appends ‘/external/’ to a link and ‘/mailto/’ to an email address, so you can filter all of your hits with the ‘contains /external/’ or ‘contains /mailto/’ section and you’ll only see results to external links from your posts/pages.
Requirements, you must have the Google Analytics code just below the opening <body> tag of your page, rather than at the bottom of the page before the closing </body> tag. Otherwise, your page will throw a JavaScript error.


Leave a Reply