What is an event in web analytics?
Your report doesn't understand your customer. That part is your job.
Conversions in Google Analytics 4 count correctly across two domains only when GA4 recognizes the same customer on both sites. That is what cross-domain measurement is for.
You set it up in 3 steps in the GA4 interface and check it in a few minutes. Below: step-by-step setup, testing, the most common mistakes and importing conversions into Google Ads. Accurate as of October 2026.
GA4 recognizes a customer by the _ga cookie. That cookie belongs to one domain, and the second domain can’t see it. When a customer moves, for example, from the website company.com to the store company-shop.com, the store doesn’t know it’s the same person. GA4 gives them a new ID and starts a new session.
It’s like a store where the customer walks from the fitting room to the checkout, and the cashier greets them as if they had just come in off the street.
The effects show up in reports:
company.com / referral instead of Google Ads or organic search. This is called self-referral: the site refers traffic to itself.Typical two-domain setups are a company website with a separate store, a store with an external booking system, or a campaign landing page on a different domain than the store.
If your GA4 conversions land under the wrong source, let's check the measurement together on a free call.
Book a free callA conversion in Google Analytics 4 is an event marked as important for the business, for example a purchase (purchase) or a form submission (generate_lead). Since March 2024, GA4 calls these events key events. The word „conversion” stayed with Google Ads.
You mark a key event in GA4 under Admin → Data display → Events, with the „Mark as key event” toggle next to the event you choose. I describe the whole setup step by step in the article how to set up a conversion in GA4. Marking alone isn’t enough when the customer changes domains. The event gets recorded, but with the wrong source and without the visit history. How an event differs from a conversion is something I explain in the article what an event is in web analytics.
Before you start: you need editor access to the GA4 property and access to the code or Google Tag Manager on both domains.
Both domains have to send data to the same data stream, with the same measurement ID (G-XXXXXXX). If the second domain has a different ID or a different GA4 property, the data lands in two separate places and there is nothing to connect. You can check the ID on each domain in Tag Assistant (tagassistant.google.com).
company.com, then company-shop.com.From then on the tag adds the _gl parameter to links between these domains. The _gl parameter carries the customer and session IDs, so the second domain knows it’s the same person. GA4 also stops treating the domains on this list as traffic sources.
A customer who pays through an external gateway (for example PayU, Przelewy24, a popular Polish payment provider, or PayPal) comes back to the thank-you page from the gateway’s address. GA4 may then treat the gateway as the source of the visit and credit the purchase to payu.pl / referral. To prevent that, go to „Show more” → „List unwanted referrals” in the same tag settings and add the gateway domains. Gateways don’t go into step 2, because our tag isn’t on them.
_gl=.... If it doesn’t, the move isn’t a regular link, or the domain is missing from the list in step 2.GA4 doesn’t fix data retroactively. The setup works from the day you deploy it, and old reports stay as they were. That’s why it’s worth writing down the date of the change, so you can compare the periods before and after later.
When you still see self-referral after the setup, the cause usually lies in how people move between the domains:
_gl to link clicks and submitted forms. A button that sends the customer over with a script (window.location) doesn’t get the parameter._gl if the server doesn’t pass URL parameters along.Google Ads can count conversions in two ways: by importing key events from GA4 or with its own Google Ads conversion tag. With two domains, both ways need the ad click information to make it to the second domain. The _gl parameter carries that information too, so step 2 fixes both kinds of measurement. If your tags live in Google Tag Manager, the Conversion Linker tag also needs the list of domains.
Importing a key event from GA4 into Google Ads looks like this:
The most common mistake when both ways run at once is counting the purchase twice. It happens when the purchase is a primary conversion both from the Google Ads tag and from the GA4 import. The campaign then sees two sales where there was one and learns from an inflated result. One source should be primary and the other marked as secondary.
The numbers in GA4 and Google Ads won’t be identical anyway. Google Ads credits a conversion to the day of the ad click, GA4 to the day of the purchase, and the two systems split credit between channels differently. A gap of a few percent is normal. A large gap that lasts for weeks is a signal to check the measurement.
The three steps in this article are enough for a simple setup: two domains, regular links, one payment gateway. Paths across three or more domains, widgets in iframes, server-side tracking and stores where the consent banner blocks tags at the key moment take more work, as with a missing purchase event in WooCommerce. If you still see self-referral after the setup, the problem is in the implementation, not in how the data is read.
At that point it’s worth walking through the customer path step by step with someone who has seen this bug in many accounts. Here’s what that looks like: analytics and tracking setup.
Author - Michał Wojciechowski
I have run Google Ads accounts myself since 2019 and I create the ads and copy for them. I have run campaigns on 9 markets and worked on projects on 8 more.
I started in graphic design and film, so I look at an ad the way a viewer does. I work directly with business owners: regular calls, decisions based on data, and work on the offer and the landing page, not only on the ads.
One hour on a call is usually enough to see why the sales are not coming in.