Skip to content

Commit 9cf142a

Browse files
committed
add goatcounter GDPR privacy preserving tracking to see what pages people are visiting.
1 parent 3ec19c2 commit 9cf142a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

website/www/_templates/layout.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,17 @@
120120
</div>
121121
</div>
122122
{%- endblock %}
123+
<script>
124+
/* locally hosted goatcounter https://www.goatcounter.com/ */
125+
/* include site info in path url to allow multiple sites to be
126+
tracked together */
127+
window.goatcounter = {
128+
path: function(p) { return location.host + p }
129+
}
130+
</script>
131+
<script data-goatcounter="https://stats.rouilj.dynamic-dns.net/count"
132+
integrity="sha384-QGgNMMRFTi8ul5kHJ+vXysPe8gySvSA/Y3rpXZiRLzKPIw8CWY+a3ObKmQsyDr+a"
133+
async="" src="_static/goatcounter_count.v3.js">
134+
</script>
123135
</body>
124136
</html>

0 commit comments

Comments
 (0)