--- a/Allura/allura/templates/widgets/analytics.html
+++ b/Allura/allura/templates/widgets/analytics.html
@@ -8,9 +8,9 @@
{% if c.app and c.app.config -%}
_gaq.push(['_setCustomVar', 1, 'Page Type', '{{c.app.config.tool_name}}', 3])
{%- endif %}
+ {{theme_macros.custom_ga_js(c.user|default, c.project|default)}}
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
- {{theme_macros.custom_ga_js(c.user|default, c.project|default)}}
(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';