wiki-grav/themes/learn2-dark/templates/partials/goatcounter.html.twig

13 lines
454 B
Twig
Raw Normal View History

<div id="goatcounter-analytics">
<script>
window.goatcounter = {
2023-03-12 15:17:18 +01:00
// prepend the url to the path
2023-03-12 15:18:53 +01:00
path: function(p) { return location.host + p },
2023-03-12 15:17:18 +01:00
// normalize referrer to just the URL
2023-03-12 15:21:28 +01:00
referrer: function(r) { return new URL(document.referrer).origin }
}
</script>
2023-03-16 13:20:21 +01:00
<script data-goatcounter="https://goat.exu.li/count"
async src="//goat.exu.li/count.js"></script>
</div>