I have a website that's on multiple domains, and I want to track it universally. Currently, I do not care about statistics per domain, I just want to see the total page views.
I am also not interested in links between domains – they could be counted as two sessions.
So I've created a new property in the https: //analytics.google.com dashboard, but I need to enter a "default URL" (where I've only selected one of my domains). Then I found the tracking code that starts with
I then used the tag manager to get information about universal tracking: https://support.google.com/tagmanager/answer/6164469. That's why I created a Google Analytics: Universal Analytics tag with a variable with Google's tracking ID. Analytics property and with Cross-domain tracking configured with all my domain names (separated by a comma).
The Tag Manager has a button in the title bar that looks like this: "GTM -…" – It will pop up a popup window titled "Install Google Tag Manager" with a code I put into it Embed Head Tag:
and code to embed in the body tag:
Do I just need to embed the ones? GTAG Code? only the Google Tag Manager Code? Or both?
Thank you very much