Parent: [76990b] (diff)

Child: [b2e53a] (diff)

Download this file

analytics.html    24 lines (20 with data), 819 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% if g.theme.jinja_macros %}
{% import g.theme.jinja_macros as theme_macros with context %}
{% endif %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{account}}']);
{% if c.app and c.app.config %}
_gaq.push(['_setCustomVar', 1, 'Tool', '{{c.app.config.tool_name}}', 3])
{% endif %}
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
{% if c.user and c.user._id %}
{{theme_macros.custom_ga_js(c.user)}}
{% endif %}
(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);
})();
</script>