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
as expected, I am able to trigger events only in production mode. But now I also wish to log events in staging (pre-production) env under some different tracking ID UA-XXXXX-Y (to segregate data). I need to set tracking id conditionally for this. Is there a way to set this in above block instead of hardcoding it in html file?
If not, I would be happy to contribute.
Thanks for this awesome utility 👍
The text was updated successfully, but these errors were encountered:
You can do this using lookup tables from within Google Tab Manager. I have UA-xxx-1 for pre-prod and the UA-xxxx-2 for all things production.
You then alter the events and pageview triggers to use the lookup table to determine which tag to use.
Not exactly an issue but something that would be great to have.
Using below
as expected, I am able to trigger events only in production mode. But now I also wish to log events in staging (pre-production) env under some different tracking ID
UA-XXXXX-Y
(to segregate data). I need to set tracking id conditionally for this. Is there a way to set this in above block instead of hardcoding it in html file?If not, I would be happy to contribute.
Thanks for this awesome utility 👍
The text was updated successfully, but these errors were encountered: