Permalink
Browse files

Adding in Google Analytics code

  • Loading branch information...
1 parent 9a6a213 commit fec9ccf0377b2de97ee2641cdcfce08d35b5dff1 @rossbruniges committed Dec 10, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 gameon/base/templates/base.html
@@ -17,6 +17,18 @@
{% block page_css %}{% endblock %}
<link rel="icon" href="{{ static('base/img/favicon.ico') }}" />
{% block social_meta %}{% endblock %}
+ {% if not APP_MSG %}
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-35433268-16']);
+ _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">

0 comments on commit fec9ccf

Please sign in to comment.