mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
fix: umami analytics date attribute (#477)
This commit is contained in:
parent
9ae6343dd0
commit
422ba5c365
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ function addGlobalPageResources(
|
||||||
componentResources.afterDOMLoaded.push(`
|
componentResources.afterDOMLoaded.push(`
|
||||||
const umamiScript = document.createElement("script")
|
const umamiScript = document.createElement("script")
|
||||||
umamiScript.src = "https://analytics.umami.is/script.js"
|
umamiScript.src = "https://analytics.umami.is/script.js"
|
||||||
umamiScript["data-website-id"] = "${cfg.analytics.websiteId}"
|
umamiScript.setAttribute("data-website-id", "${cfg.analytics.websiteId}")
|
||||||
umamiScript.async = true
|
umamiScript.async = true
|
||||||
|
|
||||||
document.head.appendChild(umamiScript)
|
document.head.appendChild(umamiScript)
|
||||||
|
|
Loading…
Reference in a new issue