Skip to content
This repository

Commonly used Gatling Trackers

If you’re new to Gatling, check out the Getting Started guide.

Each Gatling Tracker below consists of two parts: a tracker definition (aka “declaration”) and its configuration (aka “load instance”). Both parts can go inside your gatling.trackers.js in their respective sections: gatling.declare and gatling.load.

Gatling Trackers

Please create a ticket in the issue tracker if you would like to:

  • Add a Gatling Tracker you defined to this page
  • Request a new Gatling Tracker be created for an analytics provider not convered here
  • Report a broken Tracker
  • Report an improperly configured Tracker

Bing

Gatling Tracker Declaration
{
	 name: 'bing',
	 
	 definition:
	 {
		  path: '0.r.msn.com/scripts/microsoft_adcenterconversion.js',
		  
		  globals: ['microsoft_adcenterconversion_domainid', 'microsoft_adcenterconversion_cp']
	 }
}

Example Configuration
{
	 type: 'bing',
	 
	 params:
	 {
		  microsoft_adcenterconversion_domainid: 12345,
		  microsoft_adcenterconversion_cp: 1234
	 }
}

Chartbeat

Gatling Tracker Declaration
{
	 name: 'chartbeat',
	 
	 definition:
	 {
		  path: 'static.chartbeat.com/js/chartbeat.js',
		  
		  securePrefix: 's3.amazonaws.com/',
	 
		  globals: ['_sf_async_config', '_sf_startpt', '_sf_endpt']
	 }
}

Example Configuration
{
	 type: 'chartbeat',
	 
	 params: 
	 {
		  _sf_async_config: 
		  {
		  	uid: 1234, 
		  	domain: "example.com"
		  },
		  
		  _sf_startpt: $.gatling.loadTime.start.getTime(),
		  
		  _sf_endpt: $.gatling.loadTime.end.getTime()
	 }
}

Disqus

Gatling Tracker Declaration
{
    name: 'disqus',
    
    definition: 
    {
        path: "disqus.com/forums/%gatling-tracker-id%/embed.js"
    }
}

Example Configuration
{
    type: 'disqus',
    
    id: 'example'
}

Special Note

You must have the following HTML element somewhere on your page.

<div id="disqus_thread"></div>

Also, check out the Disqus Embed Guide for extra parameters which can be passed as the Gatling “params” object in your “load instance”.

Extole

Gatling Tracker Declaration
{
	 name: 'tellapal',
	 
	 definition:
	 {
		  path: 'widgets.tellapal.com/%tracking_type%.gif'
	 },
	 
	 replacements:
	 {
		  'tracking_type': '%tracking_type%'
	 }
}

Example Configuration
{
	 type: 'tellapal',
	 
	 params:
	 {
		  tracking_type: 'sale',
		  'tellapal.id': 12345,
		  id: 12345,
		  email: "foo@bar.com",
		  revenue: 100
	 } 
}

Facebook

Gatling Tracker Declaration
{
	 name: 'facebook',
	 
	 definition:
	 {
		  path: 'ah8.facebook.com/js/conversions/tracking.js'
	 }
}

Example Configuration
{
	 type: 'facebook',
	 
	 listener: function (tracker)
	 {
		  try 
		  {
				FB.trackConversion({'id' : 1234567890123, 'h' : 'ABC123...'}); 
		  }
		  catch (e) 
		  {}
	 }
}

Get Satisfaction

Gatling Tracker Declaration
{
	 name: 'getsatisfaction',
    
	 definition: 
	 {
		  path: "s3.amazonaws.com/getsatisfaction.com/javascripts/feedback-v2.js"
	 }
}

Example Configuration
{
	 type: 'getsatisfaction',
    
	 listener: function (tracker)
	 {
	 	 var feedback_widget = new GSFN.feedback_widget(
	 	 {
	 	 	 display: "overlay",
			
	 	 	 company: "AbCd...",
			
	 	 	 placement: "right",
			
	 	 	 color: "#222",
			
	 	 	 style: "idea"
	 	 });
	 }
}

Google Ad Services

Gatling Tracker Declaration
{
	 name: 'google_ad',
	 
	 definition:
	 {
		  image: 'www.googleadservices.com/pagead/conversion/%google_converstion_id%/'
	 },
	 
	 replacements:
	 {
		  'google_conversion_id': '%google_converstion_id%'
	 }
}

Example Configuration
{
	 type: 'google_ad',
	 
	 params:
	 {
		  google_conversion_id: 1234567890,
		  label: 'AbCd...',
		  language: 'en',
		  format: '3',
		  color: '666666',
		  value: 0,
		  guid: 'ON',
		  script: 0
	 }
}

Google Analytics

Gatling Tracker Declaration
{
	 name: 'google_analytics',
	 
	 definition: 
	 {
		  path: 'google-analytics.com/ga.js',
		  
		  prefix: 'www.',
		  
		  securePrefix: 'ssl.',
		  
		  loaded: function (tracker)
		  {
				tracker.ready(tracker, _gat._getTracker(tracker.trackerID));
		  }
	 }
}

Example Configuration
{
	 type: 'google_analytics', 
	 
	 id: 'UA-555...-1', 
	 
	 listener: function (tracker, page)
	 {
		  page._setAllowHash(false);
		  page._setDomainName('.example.com');
		  page._trackPageview();
	 }
}

Hubspot

Gatling Tracker Declaration
{
	 name: 'hubspot',
	 
	 definition:
	 {
		  path: '%gatling-tracker-id%/salog.js.aspx',
		  
		  globals: ['hs_ppa', 'hs_portalid', 'hs_salog_version']
	 }
}

Example Configuration
{
	 type: 'hubspot',
	 
	 id: 'example.app5.hubspot.com',
	 
	 params: 
	 {
		  hs_ppa: 'example.app5.hubspot.com',
		  hs_portalid: 55555,
		  hs_salog_version: '2.00'
	 }
}

KISSinsights

Gatling Tracker Declaration
{
	 name: 'kissinsights',
    
	 definition: 
	 {
	 	 path: "s3.amazonaws.com/j.kissinsights.com/u/%user%/%gatling-tracker-id%.js"
	 },
	 
	 globals: ["_kiq"],
	 
	 replacements: 
	 {
	 	user: "%user-id%"
	 }
}

Example Configuration
{
	 type: 'kissinsights',
    
	 id: "AbCd...",
	 
	 params:
	 {
	 	user: 1234
	 }
}

LinkShare

Gatling Tracker Declaration
{
	 name: 'linkshare',
	 
	 definition:
	 {
		  image: 'track.linksynergy.com/ep'
	 }
}

Example Configuration
{
	 type: 'linkshare',
	 
	 params:
	 {
		  mid: 12345,
		  ord: 12345,
		  cur: 12345,
		  skulist: "...",
		  qlist: "...",
		  amtlist: 100,
		  namelist: "..."
	 }
}

Marin

Gatling Tracker Declaration
{
	 name: 'marin',
	 
	 definition:
	 {
		  path: 'tracker.marinsm.com/tracker/%gatling-tracker-id%.js',
		  
		  loaded: function (tracker)
		  {
				try
				{
					 _marinTrack.trackPage();
					 tracker.ready(tracker);
				}
				catch (e)
				{}
		  }
	 }
}

Example Configuration
{
	 type: 'marin',
	 
	 id: '555...'
}

Performable

Gatling Tracker Declaration
{
	 name: 'performable',
	 
	 definition:
	 {
		  path: 'd1nu2rn22elx8m.cloudfront.net/performable/pax/%gatling-tracker-id%.js'
	 }
}

Example Configuration
{
	 type: 'performable',
	 
	 id: "AbCd..."
}

Quantcast

Gatling Tracker Declaration
{
	name: 'quantcast',
	
	definition: 
	{
		path: "edge.quantserve.com/quant.js",
		
		globals: ['_qoptions']
	}
}

Example Configuration
{
	type: 'quantcast',
	
	params: 
	{
		_qoptions: {qacct: "AbCd..."}
	}
}

Reinvigorate

Gatling Tracker Declaration
{
	 name: 'reinvigorate',
	 
	 definition: 
	 {
		  securePrefix: "ssl-",

		  path: "include.reinvigorate.net/re_.js",
		  
		  loaded: function (tracker)
		  {
				try {
					 reinvigorate.track(tracker.trackerID);
				} catch(err) {}

				tracker.ready(tracker);
		  }
	 }
}

Example Configuration
{
	 type: 'reinvigorate',
								
	 id: 'AbC123...'
}

ValueClick Media

Gatling Tracker Declaration
{
	 name: 'valueclick',
	 
	 definition:
	 {
		  prefix: 'media.',
		  
		  securePrefix: 'secure.',
		  
		  image: 'fastclick.net/w/tre'
	 }
}

Example Configuration
{
	 type: 'valueclick',
	 
	 params:
	 {
		  ad_id: 12345,
		  evt: 12345,
		  cat1: 12345,
		  cat2: 12345
	 }
}

Visual Website Optimizer

Gatling Tracker Declaration
{
	name: "vwo",
	
	definition: {
		path: "dev.visualwebsiteoptimizer.com/deploy/js_visitor_settings.php",
		globals: [
			"_vis_opt_account_id"
		],
		loaded: function (tracker) {
			if (typeof(_vis_opt_settings_loaded) === "boolean") {
				$.getScript(document.location.protocol + "d5phz18u4wuww.cloudfront.net/vis_opt_no_jquery.js", function () {
					if ($.isFunction(_vis_opt_top_initialize)) {
						_vis_opt_top_initialize();
						vwo_$(document).ready(function() { _vis_opt_bottom_initialize(); });
					}
				});
			}
		
			tracker.ready(tracker);
		}
	}
}

Example Configuration
{
	 type: 'vwo',
	 
	 params:
	 {
		  _vis_opt_account_id: 12345,
		  a: 12345,
		  v: 1,
		  url: encodeURIComponent(document.URL),
		  random: Math.random()
	 }
}

Something went wrong with that request. Please try again.