web/hdalab/templates/google_analytics/async_analytics_template.html
author ymh <ymh.work@gmail.com>
Mon, 30 Jul 2012 11:35:45 +0200
changeset 226 6143a55c25d8
parent 170 cb3e869ab252
permissions -rw-r--r--
Added tag V02.16 for changeset d1eea4065b01
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>