This commit is contained in:
Timothy Jaeryang Baek
2026-07-10 18:30:44 -05:00
parent 7080dcd996
commit ca99717a77
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -50,6 +50,7 @@ const config: Config = {
markdown: {
mermaid: true,
},
clientModules: ["./src/clientModules/ensure-gtag.js"],
themes: ["@docusaurus/theme-mermaid"],
presets: [
+7
View File
@@ -0,0 +1,7 @@
if (
process.env.NODE_ENV !== "production" &&
typeof window !== "undefined" &&
typeof window.gtag !== "function"
) {
window.gtag = () => {};
}