-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from questionlp/develop
Add missing Umami Analytics template file
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters