Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Removing WebTrends - adding in Google analytics #115

Merged
merged 1 commit into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 16, 2012
  1. @rossbruniges
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 7 deletions.
  1. +14 −7 templates_ignite/base.html
View
21 templates_ignite/base.html
@@ -16,6 +16,20 @@
<![endif]-->
<link rel="icon" href="{{ MEDIA_URL }}img/favicon.ico" />
{% block social_meta %}{% endblock %}
+ {% if waffle.switch('track_hits') %}
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-35433268-3']);
+ _gaq.push(['_trackPageview']);
+ (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>
+ {% endif %}
</head>
<body id="{% block page_id %}{% endblock %}" class="{% block section_class %}{% endblock %}">
<script type="text/javascript">
@@ -159,12 +173,5 @@ <h2 class="point">Connect with Mozilla</h2>
{% endblock %}
{% block page_js %}{% endblock %}
<script src="//www.mozilla.org/tabzilla/media/js/tabzilla.js"></script>
- {% if waffle.switch('track_hits') %}
- <!-- START OF SmartSource Data Collector TAG v10.2.0 -->
- <!-- Copyright (c) 2012 Webtrends Inc. All rights reserved. -->
- <script src="{{ MEDIA_URL }}js/include/ext/webtrends/webtrends.load.js"></script>
- <noscript><img alt="dcsimg" id="dcsimg" width="1" height="1" src="//statse.webtrendslive.com/dcs7ggi1tvz5bdbvfb86i75xm_9b9v/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=10.2.10&amp;dcssip=www.mozillaignite.org"/></noscript>
- <!-- END OF SmartSource Data Collector TAG v10.2.0 -->
- {% endif %}
</body>
</html>
Something went wrong with that request. Please try again.