Skip to content

Commit

Permalink
fix: umami analytics date attribute (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse484 authored Sep 16, 2023
1 parent 9ae6343 commit 422ba5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quartz/plugins/emitters/componentResources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function addGlobalPageResources(
componentResources.afterDOMLoaded.push(`
const umamiScript = document.createElement("script")
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
document.head.appendChild(umamiScript)
Expand Down

0 comments on commit 422ba5c

Please sign in to comment.