We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gtag
1 parent f53dc7e commit d43dffaCopy full SHA for d43dffa
1 file changed
src/runtime/registry/google-tag-manager.ts
@@ -167,6 +167,9 @@ export function useScriptGoogleTagManager<T extends GoogleTagManagerApi>(
167
(window as any)[dataLayerName].push(arguments)
168
}
169
170
+ // Assign gtag to window for global access
171
+ (window as any).gtag = gtag
172
+
173
// Allow custom initialization
174
options?.onBeforeGtmStart?.(gtag);
175
0 commit comments