Skip to content
Snippets Groups Projects
Commit 9ced943f authored by Yassine Doghri's avatar Yassine Doghri
Browse files

feat(analytics): add matomo script to head

parent 22dea2b5
No related branches found
No related tags found
No related merge requests found
Pipeline #19035 passed
......@@ -26,6 +26,27 @@ import CastopodMascot from "assets:CastopodMascot";
data-domain="castopod.org"
src="https://analytics.castopod.org/js/plausible.js"
></script>
<!-- Matomo -->
<script is:inline>
var _paq = (window._paq = window._paq || []);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function () {
var u = "//mat.castopod.org/";
_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 -->
</head>
<body class="flex flex-col min-h-full overflow-x-hidden bg-pine-800">
......
......@@ -54,6 +54,27 @@ import { HeadHrefLangs } from "astro-i18next/components";
data-domain="castopod.org"
src="https://analytics.castopod.org/js/plausible.js"
></script>
<!-- Matomo -->
<script is:inline>
var _paq = (window._paq = window._paq || []);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function () {
var u = "//mat.castopod.org/";
_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 -->
</head>
<body class="grid overflow-x-hidden">
......
......@@ -25,6 +25,27 @@ import { HeadHrefLangs } from "astro-i18next/components";
data-domain="castopod.org"
src="https://analytics.castopod.org/js/plausible.js"
></script>
<!-- Matomo -->
<script is:inline>
var _paq = (window._paq = window._paq || []);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function () {
var u = "//mat.castopod.org/";
_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 -->
</head>
<body class="overflow-x-hidden">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment