Browse Source

Retrait de Matomo

master
Miraty 4 years ago
parent
commit
76e6d98cfb
  1. 33
      inc/debut.php

33
inc/debut.php

@ -48,39 +48,6 @@ while ($page = $reponse->fetch()) { ?>
<meta property="og:image:height" content="510"/>
<meta property="og:image:alt" content="Logo Ant"/>
<meta property="og:description" content="<?php echo $page['description']; ?>"/>
<!-- Début du code Matomo -->
<!-- Code Javascript Matomo si activé -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push([function() {
var self = this;
function getOriginalVisitorCookieTimeout() {
var now = new Date(),
nowTs = Math.round(now.getTime() / 1000),
visitorInfo = self.getVisitorInfo();
var createTs = parseInt(visitorInfo[2]);
var cookieTimeout = 33696000; // 13 mois en secondes
var originalTimeout = createTs + cookieTimeout -
nowTs;
return originalTimeout;
}
this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
}]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//matomo.antopie.org/";
_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.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- Image Matomo si JS désactivé -->
<noscript>
<img src="https://matomo.antopie.org/piwik.php?idsite=1&amp;rec=1&amp;action_name=<?php echo $page['titre']; ?>" style="border:0" alt="" />
</noscript>
<!-- Fin du code Matomo -->
</head>
<body lang="fr">

Loading…
Cancel
Save