feat: adds support for analytics pixels

This commit is contained in:
Iain Learmonth 2026-05-21 16:22:24 +01:00
parent de830da3b7
commit e0ad9ee248
4 changed files with 7 additions and 1 deletions

View file

@ -67,8 +67,11 @@
g.async = true;
g.src = u + 'matomo.js';
s.parentNode.insertBefore(g, s);
})();
})();
{% if site_pixel %}
onload=_=>document.body.insertAdjacentHTML("beforeend",'<img src="{{ site_pixel }}">')
{% endif %}
</script>
</head>
<body>