You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read that this is possible when interacting directly with GTM:
if (admin || localhost) { // disable GA:
window['ga-disable-UA-XXXXX-Y'] = true; // enter your tracking ID
}
Quoting the docs:
The analytics.js library includes a window property that, when set to true, disables analytics.js from sending data to Google Analytics. When Google Analytics attempts to set a cookie or send data back to the Google Analytics servers, it will check whether this property is set to true. If it is, no action will be taken.
To disable tracking, set the following window property to true:
window['ga-disable-UA-XXXXX-Y'] = true;
Where the value UA-XXXXX-Y corresponds to the property ID on which you would like to disable tracking.
Is this possible using react-gtm?
The text was updated successfully, but these errors were encountered:
I read that this is possible when interacting directly with GTM:
Quoting the docs:
Is this possible using react-gtm?
The text was updated successfully, but these errors were encountered: