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

13 lines
453 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
referrer: function(r) { new URL(document.referrer).origin }
}
</script>
<script data-goatcounter="https://exu.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
</div>