Client needed to track unique users across their two different domains (.com and .io) in GA4. I helped implement cross-domain tracking so they could get a complete view of user activity between both sites.
Configured Domains in Google Analytics 4
In the browser’s developer tools, we can observe the Google Analytics cookie (_ga) with a value ending in 2061. After clicking a button that redirects to the second website, the _gl parameter appears in the URL.
We got _gl Parameter In the URL. The _ga cookie in the second site’s developer tools shows the same value ending in 2061, indicating successful cross-domain tracking.