Cross-Domain Tracking
In short
Cross-domain tracking keeps one visitor session across several domains, e.g. website, funnel and checkout. Why cookies break and how to set it up in 5 steps.
Also known as: cross domain tracking, multi-domain tracking, Multi Domain Tracking
Cross-domain tracking makes sure that a visitor who moves between several domains during their customer journey is recognized as one and the same person or session. Without cross-domain tracking, the journey breaks into several unconnected visits, and the conversion loses its source.
The problem
Tracking usually relies on first-party cookies, and those only apply to their own domain. A typical lead funnel, however, looks like this:
- Click on a Meta ad → landing page on
yourcompany.com - Click on Apply now → funnel on a funnel builder's domain
- Book a call → embedded calendar tool
- Purchase → the payment provider's checkout page
On every new domain, tracking starts from scratch. The conversion at checkout then shows up as a direct visit or a referral from the funnel builder, not as the result of the Meta ad.
Example
An agency spends $3,000 in ad budget for a coaching client. The funnel tool shows 18 sales, the ad account only 7, because purchases happen on a third-party checkout domain where the ad click is unknown. With cross-domain tracking, all 18 sales can be attributed to the right campaign, and the ROAS suddenly looks completely different.
How cross-domain tracking works
The session identifier is passed along when the domain changes, typically as a URL parameter on outbound links, as a hidden field in embedded forms or as a parameter in checkout links. The target domain reads the identifier and continues the session. In Google Analytics 4, for example, this is the _gl parameter.
Setting up cross-domain tracking
- List all domains in the journey: website, funnel builder, calendar, checkout.
- Install the tracking on every domain you control.
- Pass the session ID on links, in hidden form fields and in checkout links.
- Exclude your own domains as referrers so they don't overwrite the ad source.
- Test end to end: click an ad or a link with UTM parameters, convert, and check that the conversion keeps its source.
LeadMetrics offers Multi Domain Tracking for this: the session is passed on outbound links to your other domains. For iframes, funnel tools and checkout links there are placeholders that insert the session ID into hidden fields or links. On top of that, LeadMetrics matches leads to the session by email or phone number (lead tracking). Many tools like Heyflow or Digistore24 can be connected this way.
Common mistakes
- Self-referrals: Your own funnel domain shows up as a traffic source and overwrites the ad.
- Lost parameters: Redirects or link shorteners strip the session identifier.
- Only one domain set up: The tracking script is missing on subdomains or funnel pages.
Ready for better tracking?
Frequently asked questions
Guides on this topic
Cross-Domain Tracking for Funnels, Iframes and Checkouts: Don't Lose a Single Lead
Why leads from Heyflow, Perspective, Typeform, ClickFunnels, Calendly or Digistore24 lose their source, and how to pass the session across domains, iframes and checkouts.
Read guideCampaign Tracking with UTMs and Click IDs: Setup Guide
Set up clean campaign tracking: a UTM naming convention, dynamic parameters in Meta and Google Ads, click IDs, common mistakes and how to test it all.
Read guideLead Attribution: How to Track Every Lead Back to Its Campaign and Ad
How lead tracking works from click to closed deal: UTMs, click IDs, session matching, form capture and CRM revenue per ad. Plus first vs last click and a checklist.
Read guideRelated terms
All termsFirst-Party Cookies
First-party cookies are set by the domain you are currently visiting. They store things like logins, shopping carts or tracking IDs for that same website.
Customer Journey · The path from first contact to closed deal
The customer journey describes every step and touchpoint a prospect goes through, from the first contact with your brand to the purchase or signed deal.
Attribution · Assigning conversions to marketing channels
Attribution assigns leads, purchases and revenue to the channels, campaigns and ads that drove them – the basis for every budget decision you make.
UTM Parameters
UTM parameters are tags added to a URL (e.g. utm_source, utm_campaign) that tell analytics tools which source and campaign a visitor came from.
Conversion Tracking
Conversion tracking records which users complete a desired action after clicking an ad – such as submitting a form, booking a call or buying.
Client-Side Tracking
Client-side tracking captures user actions with JavaScript directly in the browser and sends them from there to analytics and ad platforms.