Footer : Add piwik_analytics

Cette révision appartient à :
Progi1984 2013-07-21 21:05:09 +02:00
Parent 85f08b5fe4
révision 5e9e09e0a8

Voir le fichier

@ -279,5 +279,20 @@ if ($homepage && $homepage_url !== '/') {
</script>
<?php } ?>
<?php if ($options['piwik_analytics']) { ?>
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://<?php echo $options['piwik_analytics'];?>/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "1"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
<?php } ?>
</body>
</html>
</html>