Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #115 from rossbruniges/dev

Removing WebTrends - adding in Google analytics
  • Loading branch information...
commit 8d741c5504a23fd9da644445294b6b1ce51c8afd 2 parents cd2a7c6 + 17d5ffb
Ross Bruniges rossbruniges authored
Showing with 14 additions and 7 deletions.
  1. +14 −7 templates_ignite/base.html
21 templates_ignite/base.html
View
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.