Last active
December 10, 2015 11:19
-
-
Save rusdyahmad/4427129 to your computer and use it in GitHub Desktop.
Google analytics Snippet for Sublime Text 2
This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
<script> | |
var _gaq = [ | |
['_setAccount', 'UA-XXXXX-X'], | |
['_trackPageview'] | |
]; | |
(function (d, t) { | |
var g = d.createElement(t), | |
s = d.getElementsByTagName(t)[0]; | |
g.async = true; | |
g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
s.parentNode.insertBefore(g, s); | |
})(document, 'script'); | |
</script> | |
]]></content> | |
<tabTrigger>analytics</tabTrigger> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment