Forked from mathiasbynens/Optimized Clicky Asynchronous Tracking Code
Created
November 24, 2011 15:39
Optimized Clicky asynchronous tracking code
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
/* | |
* See http://mathiasbynens.be/notes/async-analytics-snippet#comment-14 | |
*/ | |
<script> | |
var clicky = (function f(){return {log:f, goal:f};})(), | |
clicky_site_id = XXXXXX; | |
(function(d, t) { | |
var c = d.createElement(t), | |
s = d.getElementsByTagName(t)[0]; | |
c.async = 1; | |
c.src = '//static.getclicky.com/js'; | |
s.parentNode.insertBefore(c, s); | |
})(document, 'script'); | |
</script> | |
<!-- This supports tracking for users with JavaScript disabled. This should go in <body> --> | |
<noscript><img alt="" width="1" height="1" src="http://in.getclicky.com/XXXXXXns.gif" /></noscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Super Optimized and secured at the same time