Skip to content

Commit

Permalink
feat: add support to provide custom tracker script name for Umami Ana…
Browse files Browse the repository at this point in the history
…lytics (#418)
  • Loading branch information
guidemetothemoon committed Jan 28, 2023
1 parent 82847f7 commit f6c9968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ reversepagetitle = true # When set to 'true', the Window Title will be reversed
[umami]
# serverURL = "example.com"
# id = "94db1cb1-74f4-4a40-ad6c-962362670409"
# trackerScriptName = "mycustomscriptname.js"

## Math settings
[math]
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/analytics/umami.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script
async
defer
src="https://{{ .Site.Params.umami.serverURL }}/umami.js"
src="https://{{ .Site.Params.umami.serverURL }}/{{ .Site.Params.umami.trackerScriptName | default "umami.js" }}"
data-website-id="{{ .Site.Params.umami.id }}"
></script>

0 comments on commit f6c9968

Please sign in to comment.