Browse Source

Tracking headers.

master
Rogier Neeleman 9 years ago
parent
commit
223053c4f4
  1. 19
      application/views/header.php

19
application/views/header.php

@ -16,6 +16,25 @@ @@ -16,6 +16,25 @@
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<?php $burl=base_url('/'); if (($burl=="http://jury.scoutingutrecht.nl/") && ($this->session->regionaam != "")) { ?>
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setDomains", ["*.jury.scoutingutrecht.nl"]]);
_paq.push(["setCustomVariable", 1, "regio", "<?php echo $this->session->regionaam; ?>", "visit"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.sciuro.org/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 8]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//analytics.sciuro.org/piwik.php?idsite=8" style="border:0;" alt="" /></p></noscript>
<?php } ?>
</head>
<body>

Loading…
Cancel
Save