Gatling - Make Any JavaScript Tracker Asynchronous

Gatling is a jQuery plugin that provides a framework for firing non-asynchronous tracking pixels in an asynchronous manner. The problem with non-asynchronous trackers is they block the page load until they respond, creating a sequence of delays on page load.

Let’s say you have ten trackers you want to put on your page, half of which actually include one other script; you’re now actually waiting on 15 requests to finish before the page is ready, not 10. Now let’s say that each of those requests takes an average of 150 milliseconds to respond.

15 requests * 150 milliseconds = 2.25 seconds just for analytics

By using Gatling to handle third-party analytics trackers, you get the following benefits:

  • Trigger any number of tracking pixels in parallel, without impacting site performance.
  • Centralize your tracking pixels into one file for easier management and auditing.
  • Implement multiple trackers for one provider much more easily (e.g., track a hit on two different Google Analytics accounts).
  • Stop depending on third parties to implement their own asynchronous libraries properly.
  • Fire off trackers as the result of a user action on your site without touching the actual source of your application.

Requirements: jQuery framework
Demo: http://github.com/Knewton/Gatling/blob/master/example.html
License: Free License

Incoming search terms for the article:

Related Posts

Create Google Play’s Tab Navigation Using jQuery And CSS

Stellar.js Parallax Scrolling Plugin

jQuery-Menu-Aim

Spice Up Your Website with Spritely