📢 Tatvic is now a global partner of Usercentrics, world’s leading consent management platform

Asynchronous code enhancement for Outbound Link Tracking Google Analytics

Last Updated:

Services:    

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.

Riddhi Mehta

Riddhi Mehta

Riddhi is an experienced User Experience Designer with a demonstrated history of working in the information technology and services industry. Skilled in Prototyping, Concept Development, Design Thinking, User Experience Design, and Web Design, she has a bachelors in Product Design and a Masters in Communication Design.

Sign up for
our monthly newsletter

This field is for validation purposes and should be left unchanged.

Other Blog

Scroll to Top

Leverage Tatvic's comprehensive approach to 

Enquire Now

This field is for validation purposes and should be left unchanged.

Leverage Tatvic's comprehensive approach to 

Contact Us

Checkbox
This field is for validation purposes and should be left unchanged.