Add goatcounter to twig
This commit is contained in:
parent
279e8a136e
commit
adef9a8604
14
themes/learn2-dark/templates/partials/page.html.twig
Normal file
14
themes/learn2-dark/templates/partials/page.html.twig
Normal file
@ -0,0 +1,14 @@
|
||||
<div id="body-inner">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<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>
|
Loading…
Reference in New Issue
Block a user