Analytics and Tracking

Cross-Domain Tracking

Also called Domain linking, linker parameter

Configuration that keeps one visitor as a single session when they move between two websites you own.

Quick facts: Cross-Domain Tracking

Category
Analytics and Tracking
Also called
Domain linking, linker parameter
Level
Advanced
Affects
Session counts, conversion attribution, referral reports
Where to see it
GA4 (Data streams, Configure your domains), Google Tag Manager, real-time reports
In this article4
  1. How cross-domain tracking works
  2. Why cross-domain tracking matters
  3. Where cross-domain tracking goes wrong
  4. How to act on it

How cross-domain tracking works

Analytics recognises a returning visitor by an identifier stored in the browser, and browsers keep that storage separate for every domain. So the moment a visitor crosses from your website to a booking engine, a payment page or a shop at a different address, the second site cannot read what the first one wrote. It issues a fresh identifier, opens a new session, and records the arrival as a referral from your own site.

Cross-domain tracking solves this by handing the identifier across inside the link. When both domains are listed in the tag configuration, the tag adds a linker parameter to outbound links between them; the receiving site reads that parameter, adopts the same identifier, and carries on the session that was already running. Domains you have not named are unaffected, so nothing leaks to sites outside the list.

Why cross-domain tracking matters

Without it, one journey becomes two and both halves mislead. The first site appears to lose everybody at exactly the moment they were about to buy, so its conversion rate looks poor and its landing pages look weak. The second site appears to produce purchases out of its own referral traffic, so the campaign that actually paid for the visitor receives no credit at all.

The pattern is very common in Nepal and in travel generally: hotels and trekking agencies that hand booking to an external engine, clinics running a third-party appointment system, and any checkout that redirects to a payment provider on its own domain. In each case the money is taken somewhere the original tag cannot see, unless it has been configured to follow the visitor there.

Where cross-domain tracking goes wrong

The most frequent fault is listing only one of the domains, which works in one direction and fails quietly on the way back. Next comes a redirect that drops the linker parameter before the destination can read it — a link shortener, a strict security rule, or a redirect chain sitting in the middle of the checkout will all do it.

Then there are the parts you do not control. Some third-party checkouts strip parameters or forbid extra scripts altogether, in which case the honest answer is to measure differently rather than keep tuning the tag. Subdomains are a separate matter and normally need no configuration at all, because they share a domain; people add them anyway and assume they have fixed something.

How to act on it

List every domain a visitor can legitimately cross into, in the tag settings on both sides, then walk the journey yourself and watch the address bar — the linker parameter should be visible on the destination URL. Follow that with a live check that one visit now produces a single session rather than two, and that your own domain has stopped appearing in the referral report.

Where a third-party system genuinely cannot be tagged, agree the fallback before anybody reports a number: a server-side confirmation, an order identifier handed back, or reconciliation against the payment provider’s own totals. Whichever route you take, write it into your GA4 setup documentation, because this is precisely the configuration that disappears in a site rebuild and leaves nobody able to explain why the numbers used to add up.

Do and do not

Do

  • List every domain the journey crosses, on both sides
  • Walk the full journey and check the linker parameter
  • Record the configuration where a rebuild will find it

Do not

  • Configure subdomains that already share a domain
  • Route the handover through a redirect or link shortener
  • Report a drop-off you know is a tracking gap

Questions people ask about this

Do I need cross-domain tracking for subdomains?

Usually not. A subdomain shares its parent domain, so the browser storage that identifies a visitor carries across by itself and the session continues without help. Configure it when the addresses are genuinely different — a separate booking site, a shop on another domain, a payment page hosted by the provider — rather than whenever an address merely looks different.

How do I know if cross-domain tracking is working?

Walk the journey yourself and check two things. The link that takes you to the other domain should carry the linker parameter in its address. Then, in the real-time report, you should see one visit continuing rather than a new one beginning, and your own domain should have vanished from the list of referrers.

What if the payment provider will not let me add a tag?

Then cross-domain tracking is not possible on that step, and pretending otherwise only wastes time. Measure the last action you can genuinely see on your own site and reconcile against the provider's own records or a server-side confirmation. State plainly in reporting where the measured journey stops, so the drop-off is not read as a conversion problem.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.