Skip to content

Commit

Permalink
Merge pull request #52 from questionlp/develop
Browse files Browse the repository at this point in the history
Add missing Umami Analytics template file
  • Loading branch information
questionlp authored Sep 12, 2024
2 parents 92f1196 + 4bbeb13 commit 4bc1cb1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changes

## 3.0.1

### Application Notes

- Add missing Umami Analytics template file

## 3.0.0-post0

### Application Changes
Expand Down
15 changes: 15 additions & 0 deletions app/templates/core/umami.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% if umami.enabled %}
{% if umami.url and umami.website_id %}
<!-- Umami Analytics -->
{% set auto_track = "true" if umami.auto_track else "false" %}
{% set domains = umami.domains if umami.domains else None %}
{% set host_url = umami.host_url if umami.host_url else None %}
{% if host_url and domains %}
<script defer src="{{ umami.url }}" data-website-id="{{ umami.website_id }}" data-auto-track="{{ auto_track }}" data-domains="{{ domains }}" data-host-url="{{ host_url }}"></script>
{% elif domains %}
<script defer src="{{ umami.url }}" data-website-id="{{ umami.website_id }}" data-auto-track="{{ auto_track }}" data-domains="{{ domains }}"></script>
{% else %}
<script defer src="{{ umami.url }}" data-website-id="{{ umami.website_id }}" data-auto-track="{{ auto_track }}"></script>
{% endif %}
{% endif %}
{% endif %}
2 changes: 1 addition & 1 deletion app/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# vim: set noai syntax=python ts=4 sw=4:
"""Application Version for Wait Wait Graphs Site."""

APP_VERSION = "3.0.0"
APP_VERSION = "3.0.1"

0 comments on commit 4bc1cb1

Please sign in to comment.