Skip to content

Commit

Permalink
🔧 Replace Google Analytics with Matomo
Browse files Browse the repository at this point in the history
GitOrigin-RevId: a006508e6e5dcd3bb32126925ed64d202dac8db3
  • Loading branch information
p-bizouard committed Oct 5, 2023
1 parent a14193c commit 4058336
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions front/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,27 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="mobile-web-app-capable" content="yes" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-150548220-1"
></script>

<!-- Matomo -->
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-150548220-1');
var _paq = (window._paq = window._paq || []);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = '//matomo.centralesupelec.fr/';
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '2']);
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 -->

<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link
rel="stylesheet"
Expand Down

0 comments on commit 4058336

Please sign in to comment.