Short answer: Cross-domain tracking lets GA4 and Google Ads treat a visitor who moves between two of your domains as one session, for example from your website to a separate booking or payment domain. In GA4, add all your domains under Data streams, Configure tag settings, Configure your domains. In Google Tag Manager, make sure the same GA4 tag runs on both domains and enable linking across domains in the Conversion Linker tag. Then test that the _gl parameter appears in the URL.
Many local businesses in Faridabad and Delhi NCR send visitors from their main website to another domain to complete an action: an appointment booking tool, a separate landing page domain, an online store, or a payment page. Without cross-domain tracking, analytics sees that visitor as a brand-new user arriving from your own website, and the ad that brought them loses credit for the lead.
When Do You Need Cross-Domain Tracking?
- Your enquiry or booking form is hosted on a different domain.
- You run landing pages on one domain and the main site on another.
- Your checkout or payment step happens on a separate domain you control.
- You own two brand domains and visitors move between them.
You usually do not need it for subdomains of the same domain, such as www.example.com and blog.example.com, because GA4 handles those with the same cookie domain by default.
How Cross-Domain Tracking Works
When a visitor clicks a link from domain A to domain B, the tag adds a small linker parameter, called _gl, to the URL. Domain B reads it and continues the same session instead of starting a new one. This only works if both domains run the same GA4 measurement ID and are listed in the cross-domain settings.
Step 1: Install the Same Tags on Both Domains
Both domains need the same GA4 measurement ID, either through the same Google Tag Manager container or through matching tags. If you are new to GTM, start with our Google Tag Manager tutorial.
Step 2: Configure Your Domains in GA4
- In GA4, open Admin, then Data streams, and choose your web stream.
- Open Configure tag settings, then Configure your domains.
- Add each domain, for example
yourwebsite.comandyourbookingdomain.com, with the match type “contains” or “exactly matches”. - Save.
Step 3: Enable Linking in the Conversion Linker Tag
For Google Ads, open the Conversion Linker tag in GTM, enable linking on all page URLs across domains, and list the domains to auto-link. This keeps the ad click information available when the conversion happens on the second domain.
Step 4: List Unwanted Referrals
Third-party payment gateways can appear as referral sources and steal credit for conversions. In GA4 tag settings, use List unwanted referrals to exclude payment and authentication domains that visitors pass through but you do not control.
Step 5: Place the Conversion on the Final Domain
Fire your lead or purchase conversion on the thank-you or confirmation page, wherever it sits. Our Google Ads conversion tracking tutorial covers the conversion setup itself.
Step 6: Test It
- Open your site in GTM Preview mode and click through to the second domain.
- Check that the URL on the second domain contains
_gl=. - In GA4 DebugView, confirm the session continues rather than restarting.
- A few days later, check Traffic acquisition. If your own domain appears as a referral source, something is not linked.
Common Cross-Domain Tracking Mistakes
| Mistake | Result |
|---|---|
| Different GA4 IDs on each domain | Sessions cannot be joined |
| Domain missing from Configure your domains | No _gl parameter is added |
| Redirects that strip URL parameters | The linker parameter is lost on the way |
| Forms embedded in iframes from another domain | Linking may not pass through; track the form’s own success page or event instead |
| Payment gateway not excluded | Sales credited to the gateway as a referral |
Why It Matters for Lead Generation
If cross-domain tracking is broken, Google Ads may show fewer conversions than you really get, Smart Bidding learns from incomplete data, and your Google Ads reporting dashboard undervalues your best campaigns. Fixing it often improves results without changing a single ad.
Learn Tracking Hands-On
In the Google Ads course at AdifySkills, Sector 81, Faridabad, students set up GTM, GA4, conversion tracking and cross-domain tracking on real websites.
Key takeaways on Cross-Domain Tracking
- Your enquiry or booking form is hosted on a different domain.
- When a visitor clicks a link from domain A to domain B, the tag adds a small linker parameter, called _gl, to the URL.
- Both domains need the same GA4 measurement ID, either through the same Google Tag Manager container or through matching tags.
- In GA4, open Admin, then Data streams, and choose your web stream.
- For Google Ads, open the Conversion Linker tag in GTM, enable linking on all page URLs across domains, and list the domains to auto-link.
- Third-party payment gateways can appear as referral sources and steal credit for conversions.
Further reading
Frequently Asked Questions
Do I need cross-domain tracking for subdomains?
Usually not. GA4 treats subdomains of the same domain as one site by default.
What is the _gl parameter?
It is the linker parameter Google tags add to URLs when a visitor moves between linked domains, so the session can continue.
Can I set up cross-domain tracking without Google Tag Manager?
Yes. The GA4 domain settings work with the Google tag installed directly. GTM simply makes managing tags easier.
Why does my own domain show as a referral in GA4?
Usually because cross-domain linking is not working or a domain is missing from the configuration.
Does cross-domain tracking affect Google Ads conversions?
Yes. Without it, conversions on the second domain may lose their connection to the ad click, so Google Ads under-reports them.
Related Reading
- Google Analytics 4 for Beginners
- Google Ads Optimization Checklist for Faridabad and Delhi NCR Lead Generation
Want to learn this with live campaigns and a trainer beside you? See the full digital marketing course in Faridabad, or check admission and batch dates.