Asynchronous code enhancement for Outbound Link Tracking Google Analytics

You all are aware of “Update to Brian Clifton’s Outbound Link Tracking Code” post

I would like to update that script for Asynchronous Google Analytics Implementation, which is available here

It will serve four purposes:

  1. External Link Tracking: To track all links on your webpage which are external links i.e. sub-domain or 3rd party domain links.
  2. Email Link Tracking: To track all links which are “mailto” links.
  3. Document Download Tracking: Track all documents which ending with .jpg, .doc, .docx, .xls, .zip, .pdf etc. (you can change according to your need in the code).
  4. Time Tracking: It will also track how much time later user clicked on the link.

All you have to include the code just before the </head> tag in your website.

<script language="javascript" type="text/javascript" src="/external_link_tracking.js" ></script>

Note: This script requires JQuery library to work. Please comment if you need such library for any other JavaScript framework like Mootools or Prototype.

The following two tabs change content below.
Aditi Buch

Aditi Buch

Aditi is the Head of Marketing at Tatvic Analytics and looks after all marketing & communications for the team. Her focus is on increasing brand awareness of Tatvic and leveraging the same to build thought leadership in the Data & Analytics space. For any queries or need of information on Tatvic Analytics & our offerings, reach out to her and she'll put you in touch with the right people.
, , ,
Previous Post
5 Quick PPC Optimization Tips
Next Post
iPhone Application Tracking through Google Analytics

7 Comments. Leave new

Leave a Reply

Your email address will not be published.

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu