From ec00a40aefca73596ab76e3ebe3a8e1129b43688 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 27 Jan 2026 18:27:17 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group with 4 updates (#2289)
---
quartz/plugins/emitters/componentResources.ts | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/quartz/plugins/emitters/componentResources.ts b/quartz/plugins/emitters/componentResources.ts
index 857f4d3..9c5ee18 100644
--- a/quartz/plugins/emitters/componentResources.ts
+++ b/quartz/plugins/emitters/componentResources.ts
@@ -228,6 +228,29 @@
\`
document.head.appendChild(matomoScript);
`)
+ } else if (cfg.analytics?.provider === "vercel") {
+ /**
+ * script from {@link https://vercel.com/docs/analytics/quickstart?framework=html#add-the-script-tag-to-your-site|Vercel Docs}
+ */
+ componentResources.beforeDOMLoaded.push(`
+ window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
+ `)
+ componentResources.afterDOMLoaded.push(`
+ const vercelInsightsScript = document.createElement("script")
+ vercelInsightsScript.src = "/_vercel/insights/script.js"
+ vercelInsightsScript.defer = true
+ document.head.appendChild(vercelInsightsScript)
+ `)
+ } else if (cfg.analytics?.provider === "rybbit") {
+ componentResources.afterDOMLoaded.push(`
+ const rybbitScript = document.createElement("script");
+ rybbitScript.src = "${cfg.analytics.host ?? "https://app.rybbit.io"}/api/script.js";
+ rybbitScript.setAttribute("data-site-id", "${cfg.analytics.siteId}");
+ rybbitScript.async = true;
+ rybbitScript.defer = true;
+
+ document.head.appendChild(rybbitScript);
+ `)
}
if (cfg.enableSPA) {
--
Gitblit v1.10.0