Skip to content

Instantly share code, notes, and snippets.

@teodragovic
Created December 13, 2013 12:08
Show Gist options
  • Save teodragovic/7943368 to your computer and use it in GitHub Desktop.
Save teodragovic/7943368 to your computer and use it in GitHub Desktop.
Load Google Analytics via LABjs. Updated optimized version of the code
$LAB
.script('//www.google-analytics.com/ga.js')
.wait(function(){
var _gaq = [['_setAccount', 'UA-XXXXXX-X'], ['_trackPageview']];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment