Skip to content
Permalink
43887b4428
Go to file
 
 
Cannot retrieve contributors at this time
29 lines (22 sloc) 859 Bytes
// CrazyEgg.com
// ----------
// Last updated: December 6th, 2012
// [Documentation](www.crazyegg.com).
analytics.addProvider('CrazyEgg', {
settings : {
apiKey : null
},
// Changes to the CrazyEgg snippet:
//
// * Concatenate the API key into the URL.
initialize : function (settings) {
settings = analytics.utils.resolveSettings(settings, 'apiKey');
analytics.utils.extend(this.settings, settings);
(function(){
var a=document.createElement("script");
var b=document.getElementsByTagName("script")[0];
a.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/"+this.settings.apiKey+".js?"+Math.floor(new Date().getTime()/3600000);
a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b);
})();
}
});
You can’t perform that action at this time.