Short answer: make sure both domains load the same GA4 tag (the same G- ID), then in GA4 go to Admin → Data streams, open the web stream, click Configure tag settings → Configure your domains, add each domain and save. GA4 then appends a _gl parameter to links and forms between those domains so the visitor keeps one user ID and one session. Test it by clicking a link and checking that the destination URL contains ?_gl=.
Why do you need cross-domain measurement?
GA4 identifies visitors with first-party cookies, and each root domain has its own. When someone goes from example.com to shop-example.com, the shop sees a new visitor whose referrer is your own site. Google's help page says this produces two users and two sessions instead of one. The worse effect is attribution: the purchase is credited to example.com / referral, and the Google Ads click that started the visit loses it.
You need it for a separate shop or booking domain, a different country domain in the same flow, or a landing page builder on its own domain. You do not need it for subdomains such as shop.example.com: GA4 sets its cookie on the root domain by default, so subdomains share it. For payment providers you do not own, use unwanted referrals instead.
How to set up cross-domain measurement
- Check that every page on both domains loads the Google tag with the same
G-ID from the same web data stream. Our tracking checker shows the ID on each site. - In GA4 go to Admin → Data streams, click the web stream, then Configure tag settings at the bottom. In 2026 this opens the Google tag settings as a Tag Manager panel.
- Open Settings → Configure your domains.
The screen warns that the feature works by adding parameters to your URLs (1). If the same tag already runs on several domains, GA4 lists them under Suggested domains; click Accept suggestion to add one (2):

To add domains yourself, click Add condition, keep Contains and type each domain (1), then Save (2). Conditions use OR logic and Google allows up to 100.

Add your main domain too, not only the second one. The list also tells GA4 which links are internal, so clicks between your domains stop being counted as outbound clicks in enhanced measurement.
How to test that it works
- Open a page on the first domain and accept cookies.
- Click a link or submit a form that leads to the second domain.
- Look at the address bar on the destination. It should contain a parameter like
?_gl=1*abc123*…. - Check that the page loaded normally. Google warns that in rare cases a server rejects unknown parameters.
- In GTM Preview or DebugView, confirm the session continues and no new
session_startfires with your own domain as referrer.
When the _gl parameter disappears
- Redirects. If the destination redirects (for example from
httptohttpsor to a language folder) and drops query parameters,_glis lost. Configure the redirect to keep it. - JavaScript navigation. GA4 adds
_glwhen a link is clicked or a form is submitted. Buttons that changewindow.locationin a script are not decorated. - Consent. Without analytics consent there are no cookie IDs to pass on, so cross-domain measurement has nothing to carry.
- Different tags. If the shop uses another GA4 property or stream, the IDs do not connect. One stream, one ID.
After the change, watch referral traffic from your own domains: it should drop to almost zero for new data. Old sessions keep their source.