Ajout de l'analyseur Matomo

This commit is contained in:
Adrien CHARBONNEAU 2021-08-10 14:10:55 +02:00
parent 811a2930af
commit 45db4db8ae
2 changed files with 38 additions and 0 deletions

View File

@ -25,6 +25,26 @@
<link rel="stylesheet" href="assets/css/main.css" /> <link rel="stylesheet" href="assets/css/main.css" />
<link rel="icon" type="image/png" href="images/AC_favicon.png" /> <link rel="icon" type="image/png" href="images/AC_favicon.png" />
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stat.adriencharbonneau.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head> </head>
<body class="is-preload"> <body class="is-preload">

View File

@ -25,6 +25,24 @@
<link rel="stylesheet" href="assets/css/main.css" /> <link rel="stylesheet" href="assets/css/main.css" />
<link rel="icon" type="image/png" href="images/AC_favicon.png" /> <link rel="icon" type="image/png" href="images/AC_favicon.png" />
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stat.adriencharbonneau.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head> </head>
<body class="is-preload"> <body class="is-preload">