src/ldt/ldt/templates/google_analytics/async_analytics_template.html
author ymh <ymh.work@gmail.com>
Mon, 05 Mar 2012 23:45:26 +0100
changeset 589 e7410c4df032
permissions -rw-r--r--
template cleaning, translation in js, and add generic google analytics
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
589
e7410c4df032 template cleaning, translation in js, and add generic google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<script>
e7410c4df032 template cleaning, translation in js, and add generic google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
var _gaq=[['_setAccount','{{ analytics_code }}'],['_trackPageview']];
e7410c4df032 template cleaning, translation in js, and add generic google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
e7410c4df032 template cleaning, translation in js, and add generic google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
e7410c4df032 template cleaning, translation in js, and add generic google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
s.parentNode.insertBefore(g,s)}(document,'script'));
e7410c4df032 template cleaning, translation in js, and add generic google analytics
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
</script>