Add matomo
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2024-07-15 13:30:24 +05:30
parent 859abde759
commit a56810bc31
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -104,4 +104,16 @@ function formatCanonicalURL(url: string | URL) {
document.addEventListener('astro:page-load', () => {
nprogress.done()
})
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://stats.ptr.moe/";
_paq.push(['setTrackerUrl', u+'86eff12f2496']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'dd168412e25a.js'; s.parentNode.insertBefore(g,s);
})();
</script>