Move tracking for goatcounter to sidebar and separate twig

This commit is contained in:
RealStickman 2023-03-12 14:53:45 +01:00
parent adef9a8604
commit fd8a062527
3 changed files with 11 additions and 8 deletions

View File

@ -0,0 +1,9 @@
<div id="goatcounter-analytics">
<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://exu.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
</div>

View File

@ -3,12 +3,4 @@
<p>
{{ page.content|raw }}
</p>
<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://exu.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
</div>

View File

@ -66,3 +66,5 @@
</section>
</div>
</div>
{% include 'partials/goatcounter.html.twig' %}