src/hdalab/templates/google_analytics/async_analytics_template.html
author ymh <ymh.work@gmail.com>
Fri, 20 Mar 2015 00:04:28 +0100
changeset 564 1df39ecb3da0
parent 266 825ff4d6a8ac
child 668 f66c544255e1
permissions -rw-r--r--
Added tag V03.00-rc.06 for changeset e25de27cba8c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
170
cb3e869ab252 Add google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<script>
cb3e869ab252 Add google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
var _gaq=[['_setAccount','{{ analytics_code }}'],['_trackPageview']];
cb3e869ab252 Add google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
cb3e869ab252 Add google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
cb3e869ab252 Add google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
s.parentNode.insertBefore(g,s)}(document,'script'));
cb3e869ab252 Add google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
</script>