analytics: læg Matomo-snippet (site 2) direkte i Astro-head — minify dropper </head> som NPMplus-injektionen afhang af
Build & Deploy / deploy (push) Successful in 1m59s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Asger Geel Weirsøe
2026-06-12 17:24:00 +02:00
co-authored by Claude Opus 4.8
parent 898c37634b
commit e10815f3d7
+16
View File
@@ -65,3 +65,19 @@ const graphs = [baseGraph, ...jsonLd];
<link rel="me" href="https://mastodon.social/@asgerweirsoee" />
{graphs.map((g) => <script type="application/ld+json" set:html={JSON.stringify(g)} />)}
<!-- Matomo (site 2) via first-party proxy /_a/ — neutrale navne, så content-blockers ikke matcher "matomo".
Lagt direkte i kilden fordi HTML-minify dropper det valgfrie </head> som NPMplus' sub_filter ellers injicerede på. -->
<script is:inline>
var _paq = (window._paq = window._paq || []);
_paq.push(['setDomains', ['*.weirsoe.dk', '*.xn--weirse-fya.dk']]);
_paq.push(['enableLinkTracking']);
_paq.push(['trackPageView']);
(function () {
var u = '/_a/';
_paq.push(['setTrackerUrl', u + 'a']);
_paq.push(['setSiteId', '2']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.async = true; g.src = u + 'a.js'; s.parentNode.insertBefore(g, s);
})();
</script>