Skip to content

Commit

Permalink
chore: added support to on-premise deployment of umami service
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyserbyte committed May 12, 2024
1 parent 52ddf33 commit f7acfb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion exampleSite/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,10 @@ params:
# matomo:
# instance: matomo.example.com
# siteId: 1 # Or any other number
# # Matomo / Piwik
# # Umami
# umami:
# proto: https
# instance: umami.example.com
# id: <your umami site id>

# Enable Support
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

{{ with .umami }}
<!-- Umami analytics -->
<script defer src="https://analytics.eu.umami.is/script.js" data-website-id="{{ .id }}"></script>
<script defer src='{{ or .proto "https" }}://{{ or .instance "analytics.eu.umami.is" }}/script.js' data-website-id="{{ .id }}"></script>
<!-- End Umami analytics -->
{{end}}
{{ end }}
Expand Down

0 comments on commit f7acfb0

Please sign in to comment.