A rare option, but very relevant for particularly large projects that have several domains in their arsenal, with a single user base. The fact is that the session is stored inside each domain, according to the Google Analytics 4 regulations, which can create some failures in data transfer when moving from one domain to another.
❓ Do you need to collect all users in one analytics?
❓ Large share of referral and direct traffic?
❓ Loss in conversion data?
📓 You should probably read about cross-domain tracking in Google Analytics 4.
The goal of cross-domain tracking is to glue user sessions and, accordingly, save the history of their visit, right down to the source of the transition, thus ensuring complete transparency of web analytics.
Previously, cross-domain tracking was much more difficult to set up, but now it is a little easier, since a new version of analytics has been released - Google Analytics 4.
To perform cross-domain tracking, you need to take two steps.
👉 Specify the same counter on different sites.
👉 In the Google Analytics 4 settings, register all domains so that they do not generate intermediate transitions, namely:
“Data Streams” ➔ “Web” ➔ “Tag settings” ➔ “Domain Settings” ➔ “Add Condition”.

In our case, the system itself identified that the counter was installed on several sites and suggested adding domains to cross-domain tracking.
How to check that everything is ok?
✅ Transitions from other domains should stop generating new users in Google Analytics 4, or the number of these new users should decrease and tend to zero.
✅ Orders from direct traffic and direct traffic itself will decrease.
✅ Correct transfer of CID between domains - you check this in the browser console.

✅ Testing transitions within a site online with Google Analytics.
Enter a specific domain, make a transition to the main domain and see if a transition from another domain appears. In our case, it should not appear.
* Important! If your project consists of subdomains, then this setting is not required, since Google Analytics automatically understands that this is a single project.
We hope this material was useful to you. We will be glad to see you again on our blog and the vastness of web analytics.