aboutsummaryrefslogtreecommitdiff
path: root/templates/includes/counter.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/includes/counter.html')
-rw-r--r--templates/includes/counter.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/includes/counter.html b/templates/includes/counter.html
new file mode 100644
index 0000000..3467b6f
--- /dev/null
+++ b/templates/includes/counter.html
@@ -0,0 +1,5 @@
+{% set url = current_url | default(value='/') %}
+
+{% if url is not containing('.onion') %}
+<script async data-website-id="c3d1c4c4-3d33-4523-8829-90eb352fc3aa" src="https://analytics.umami.is/script.js"></script>
+{% endif %} \ No newline at end of file