Created
October 3, 2014 16:00
-
-
Save ryanseys/94fcae78ff249e688710 to your computer and use it in GitHub Desktop.
Checking for Google Analytics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gaObj = window['GoogleAnalyticsObject']; | |
window[gaObj](function(tracker) { | |
return tracker.get('clientId'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ProTip: I wouldn't do this. It's just asking for trouble.