mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-19 06:54:18 +02:00
Merge 43b6053e10d5609a07f6c4bf51ca57fbd342e905 into 4e4930ef9c2e2ddb9bcb1436660d3a3002c19844
This commit is contained in:
commit
d61d87b48b
@ -125,6 +125,7 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso
|
|||||||
const goatcounterScript = document.createElement("script")
|
const goatcounterScript = document.createElement("script")
|
||||||
goatcounterScript.src = "${cfg.analytics.scriptSrc ?? "https://gc.zgo.at/count.js"}"
|
goatcounterScript.src = "${cfg.analytics.scriptSrc ?? "https://gc.zgo.at/count.js"}"
|
||||||
goatcounterScript.async = true
|
goatcounterScript.async = true
|
||||||
|
goatcounterScript.setAttribute("spa-preserve", "true")
|
||||||
goatcounterScript.setAttribute("data-goatcounter",
|
goatcounterScript.setAttribute("data-goatcounter",
|
||||||
"https://${cfg.analytics.websiteId}.${cfg.analytics.host ?? "goatcounter.com"}/count")
|
"https://${cfg.analytics.websiteId}.${cfg.analytics.host ?? "goatcounter.com"}/count")
|
||||||
document.head.appendChild(goatcounterScript)
|
document.head.appendChild(goatcounterScript)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user