Skip to content

Instantly share code, notes, and snippets.

@aschuch
Last active March 1, 2019 10:14

Revisions

  1. aschuch renamed this gist Mar 4, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. aschuch renamed this gist Mar 4, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. aschuch created this gist Mar 4, 2013.
    9 changes: 9 additions & 0 deletions analytics.jade
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    script(type='text/javascript')
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-XXXXXXXX-Y']);
    _gaq.push(['_trackPageview']);
    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();