aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/zurich/tracking_code.html
blob: f98a1e0386a8f4cc934c1604540f989d435bf88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[%
    SET ga_code = 'UA-38427437-1';
    SET ga_code = 'UA-39223200-1' IF c.config.BASE_URL == "http://www.zueriwieneu.ch";
%]
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', '[% ga_code %]']);
  _gaq.push (['_gat._anonymizeIp']);
  _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>