Skip to content

Commit 05881c5

Browse files
authored
add rybbit analytics
1 parent 30999f5 commit 05881c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

quartz/plugins/emitters/componentResources.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso
111111
plausible("pageview")
112112
})
113113
`)
114+
} else if (cfg.analytics?.provider === "rybbit") {
115+
componentResources.afterDOMLoaded.push(`
116+
const rybbitScript = document.createElement("script")
117+
rybbitScript.src = "https://sorryihavetodothis.keyruu.de/api/script.js"
118+
rybbitScript.setAttribute("data-site-id", "3")
119+
rybbitScript.defer = true
120+
document.head.appendChild(rybbitScript)
121+
`)
114122
} else if (cfg.analytics?.provider === "umami") {
115123
componentResources.afterDOMLoaded.push(`
116124
const umamiScript = document.createElement("script")

0 commit comments

Comments
 (0)