Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| // 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); | |
| })(); | |
| } | |
| }); | |