theme/templates/analytics.html

changeset 36
9507107a1133
equal deleted inserted replaced
35:bb011397a99c 36:9507107a1133
1 {% if GOOGLE_ANALYTICS %}
2 <script type="text/javascript">
3 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
4 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
5 </script>
6 <script type="text/javascript">
7 try {
8 var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
9 pageTracker._trackPageview();
10 } catch(err) {}</script>
11 {% endif %}

mercurial