Timeline for Google analytics setup convention followed
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 25, 2020 at 13:25 | comment | added | Bronwyn V | Actually the example i gave wasn't particularly helpful. Have edited my answer for better clarity and for your specific situation. But yes, single tag using different tracking ids, however you can set up the GA settings to send data to a specific GA Property based on either hostname or a particular GTM environment. | |
May 25, 2020 at 13:23 | history | edited | Bronwyn V | CC BY-SA 4.0 |
Edited to show a more applicable example and better clarity
|
May 25, 2020 at 10:21 | comment | added | hck3r | So if I understand it right, its one single tag but has different tracking ids ? eg: live.com has a tag but a tracking ID 'A' and I will create a new property for staging.com which will have a tracking ID 'B'. and all the hits to staging.com will show up in the staging.com view, with the above mentioned setup ? | |
May 25, 2020 at 9:26 | vote | accept | hck3r | ||
May 24, 2020 at 22:50 | comment | added | Bronwyn V | If you use a different property just for debugging purposes, when you setup a lookup table as per the above explanation/screenshots, when in GTM debug and preview mode, only hits sent while in GTM debug/preveiw mode will get sent to the debug property, the hits wont get sent to the Property that is tracking the live site. | |
May 24, 2020 at 21:39 | comment | added | hck3r | Thanks. How do I setup my google analytics for my staging environment, when both my production and live environments are using the same tags ? Should I create a view just for this new domain or should I have a new property ? | |
May 24, 2020 at 18:38 | history | edited | Bronwyn V | CC BY-SA 4.0 |
To add further information
|
May 24, 2020 at 18:09 | history | answered | Bronwyn V | CC BY-SA 4.0 |