chore: change script.js -> umami.js
All checks were successful
deploy / build (push) Successful in 21m47s

This commit is contained in:
rizaldy 2024-03-02 03:07:13 +07:00
parent 105b1516ed
commit 615a84f98b

View File

@ -120,7 +120,7 @@ function addGlobalPageResources(
} else if (cfg.analytics?.provider === "umami") {
componentResources.afterDOMLoaded.push(`
const umamiScript = document.createElement("script")
umamiScript.src = "${cfg.analytics.host ?? "https://analytics.umami.is"}/script.js"
umamiScript.src = "${cfg.analytics.host ?? "https://analytics.umami.is"}/umami.js"
umamiScript.setAttribute("data-website-id", "${cfg.analytics.websiteId}")
umamiScript.async = true