Skip to content

Commit 377b055

Browse files
authored
Merge pull request #21 from Keyruu/switch-anal
remove analytics
2 parents f8762b3 + b398532 commit 377b055

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

quartz.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ const config: QuartzConfig = {
1313
enableSPA: true,
1414
enablePopovers: true,
1515
analytics: {
16-
provider: "plausible",
17-
host: "https://sorryihavetodothis.keyruu.de"
16+
provider: "rybbit"
1817
},
1918
locale: "en-US",
2019
baseUrl: "oblivion.keyruu.de",

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)