added umami_analytics
All checks were successful
Build / build-deploy (push) Successful in 20s

This commit is contained in:
Stephan Hadan 2025-01-27 04:24:54 +01:00
parent 49040fc62e
commit 79160247b2
3 changed files with 10 additions and 13 deletions

View file

@ -0,0 +1,6 @@
Title: Startschuß!
Date: 2025-01-27
Category: Ankündigung
Authors: Stephan Hadan
## Der Startschuß

View file

@ -21,4 +21,4 @@ DELETE_OUTPUT_DIRECTORY = True
# Following items are often useful when publishing # Following items are often useful when publishing
# DISQUS_SITENAME = "" # DISQUS_SITENAME = ""
# GOOGLE_ANALYTICS = "" UMAMI_ANALYTICS = "90d50c08-98d8-472c-8e7c-738844f13b9f"

View file

@ -1,12 +1,3 @@
{% if GOOGLE_ANALYTICS %} {% if UMAMI_ANALYTICS %}
<script> <script defer src="https://analytics.hadan-it.com/script.js" data-website-id="{{ UMAMI_ANALYTICS }}"></script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %} {% endif %}