diff --git a/src/analytics/analytics.ts b/src/analytics/analytics.ts index e642f50..c6d23b0 100644 --- a/src/analytics/analytics.ts +++ b/src/analytics/analytics.ts @@ -17,7 +17,7 @@ export async function loadGTag(gtagId: string, enabled = true): Promise { if (isServerSide()) return window.dataLayer ||= [] - window.gtag = () => { + window.gtag ||= () => { // biome-ignore lint/style/noArguments: ok window.dataLayer.push(arguments) }