Blog · Tracking
Tracking

How to Fix GA4 Cross-Domain Tracking Issues

Tracking

A customer clicks your Google Ad, visits your website, moves to a separate booking platform, and schedules an appointment. Your business receives the lead, but Google Analytics 4 reports the conversion under referral or direct traffic instead of paid search.

The campaign worked. The tracking did not.

This is a common problem for businesses that use multiple domains for their websites, checkout systems, appointment scheduling platforms, and customer portals.

Without proper GA4 Cross Domain Tracking, Google Analytics may lose user and session information when visitors move between websites. This can inflate session counts, distort attribution, and make profitable marketing campaigns appear less effective.

If you rely on Google Ads management to generate leads or sales, accurate cross-domain measurement is particularly important for evaluating campaign performance.

In this guide, Heureux IT explains how cross-domain tracking works, why it fails, and how to identify and fix common implementation issues using Google Analytics 4 and Google Tag Manager.

What Is GA4 Cross Domain Tracking?

GA4 Cross Domain Tracking is a measurement feature that allows Google Analytics 4 to preserve user and session identifiers when visitors navigate between different domains that use the same GA4 web data stream.

For example, a business might use:

  • Main website: example.com
  • Booking platform: example-booking.com
  • Checkout website: example-checkout.com

Without cross-domain measurement, GA4 may treat visits to these websites as separate user journeys.

With a working implementation, GA4 can recognize that the same visitor moved between the participating domains and maintain session continuity when measurement conditions allow.

This helps businesses understand the complete customer journey from the initial website visit to the final conversion.

How Does GA4 Cross-Domain Tracking Work?

Google Analytics uses first-party cookies to maintain user and session information.

Two important cookies are:

CookiePurpose
_gaStores information used to identify a browser or client
_ga_<ID>Stores information related to the GA4 session

Cookies created on one root domain cannot normally be read by another unrelated root domain.

Google addresses this limitation through a linker mechanism.

When a visitor clicks an eligible link between configured domains, the Google tag adds a parameter called _gl to the destination URL.

For example:

https://example-booking.com/?_gl=1*abc123...

The destination Google tag reads the linker information and uses it to maintain the relevant measurement identifiers.

A successful journey looks like this:

  1. A customer clicks a Google Ad.
  2. The customer visits the main website.
  3. The customer clicks a booking or checkout link.
  4. The Google tag adds the _gl parameter.
  5. The destination Google tag processes the linker information.
  6. The customer completes the conversion.
  7. GA4 maintains the measurement continuity of the journey.

The presence of _gl is a useful diagnostic signal, but matching client and session identifiers provides stronger evidence that cross-domain tracking works.

When Do You Need GA4 Cross Domain Tracking?

Cross-domain measurement is useful when a single customer journey involves multiple root domains.

Business TypeCross-Domain Journey
EcommerceOnline store to separate checkout website
HealthcareClinic website to appointment scheduling platform
Real EstateProperty website to external application portal
SaaSMarketing website to application domain
EducationCourse website to enrollment platform
TravelHotel website to external booking engine
NonprofitOrganization website to donation platform
Lead GenerationLanding page to external form website

Not every external website needs to be included. Configure domains that participate in the same measured customer journey and where the required tagging can be implemented.

Do Subdomains Require Cross-Domain Tracking?

Subdomains under the same root domain generally do not require separate cross-domain configuration.

For example:

www.example.com

shop.example.com

booking.example.com

Google Analytics normally uses automatic cookie domain configuration, allowing these subdomains to share cookies at the root domain level.

However, problems can still occur if the subdomains use different measurement IDs, custom cookie settings, inconsistent consent configurations, or conflicting tracking implementations.

Common Signs That GA4 Cross-Domain Tracking Is Not Working

Cross-domain issues are not always visible in Google Tag Manager. Tags may fire correctly while session continuity fails.

Look for these warning signs in GA4:

Warning SignPossible Cause
Your own website appears as a referralIncorrect domain configuration or broken continuity
Checkout website appears as a traffic sourceMissing cross-domain setup or referral handling
Sudden increase in direct trafficLost attribution or session information
Unusually high new user countsClient identifiers are not preserved
Sessions restart during checkoutMissing or invalid linker information
Missing _gl parameterLink decoration failure or stripped parameters
Purchases appear under unexpected channelsBroken customer journey measurement
Incomplete funnel reportsUser activity is split across domains
No events from the second websiteMissing or blocked Google tag

These symptoms can have other causes. Always test the actual customer journey before changing your analytics configuration.

13 Ways to Fix GA4 Cross-Domain Tracking Issues

1. Verify That Both Domains Use the Same GA4 Measurement ID

Start with the most important requirement.

All domains participating in standard GA4 cross-domain measurement must send data to the same GA4 web data stream.

To find your measurement ID:

  1. Open Google Analytics 4.
  2. Click Admin.
  3. Select Data Streams under Data Collection and Modification.
  4. Open the relevant web data stream.
  5. Copy the Measurement ID.

The ID will look like this:

G-XXXXXXXXXX

Next, open Google Tag Manager for each website and inspect the Google tag configuration.

WebsiteMeasurement IDStatus
Main WebsiteG-ABC1234567Correct
Booking WebsiteG-ABC1234567Correct
Checkout WebsiteG-XYZ9876543Incorrect

In this illustrative example, the checkout website sends data to a different stream.

Update the checkout implementation to use the intended shared measurement ID.

Different GTM containers can be used across websites. The container IDs do not need to match, but the GA4 measurement destination must be consistent.

2. Configure Cross-Domain Measurement in GA4

For most businesses, the recommended starting point is the built-in domain configuration in Google Analytics 4.

Follow these steps:

  1. Open your GA4 property.
  2. Navigate to Admin.
  3. Select Data Streams.
  4. Open your web data stream.
  5. Click Configure Tag Settings.
  6. Select Configure Your Domains.
  7. Add the domains involved in the customer journey.
  8. Choose the appropriate matching conditions.
  9. Save the configuration.

Example:

Match TypeDomain
Exactly Matcheswww.example.com
Exactly Matchesbooking.example-booking.com
Exactly Matchescheckout.example-checkout.com

Use the actual hostnames involved in your website journey.

If your website supports both www and non-www versions, account for the versions visitors can access.

Avoid overly broad matching conditions that could decorate links to unrelated websites.

For a standard GTM implementation, you generally do not need to add custom linker or allow_linker parameters when the built-in GA4 configuration works correctly.

3. Check Whether the _gl Parameter Is Being Added

The _gl parameter is one of the first things to inspect when troubleshooting GA4 Cross Domain Tracking.

Open your main website in a fresh browser session and accept analytics consent where applicable.

Click a link that takes you to the second domain.

A decorated destination URL may look like this:

https://example-booking.com/schedule?_gl=1*xyz123...

If the parameter does not appear, investigate:

  • Incorrect domain matching conditions.
  • Missing Google tag on the source page.
  • Consent restrictions.
  • JavaScript-based navigation.
  • Redirects that remove query parameters.
  • Scripts that interfere with link clicks.

Do not test only by copying and pasting a destination URL. Google normally decorates eligible links during user interaction.

Also, avoid assuming that a missing parameter in the final address bar always means tracking failed. Some websites remove parameters after the destination tag has processed them.

4. Fix Redirects That Remove the Linker Parameter

Server-side and JavaScript redirects are common causes of broken cross-domain measurement.

Consider this journey:

Main website

↓

booking.example.com/?_gl=abc123

↓

booking.example.com/login

The first destination receives the linker parameter, but the redirect removes it before the Google tag can process the information.

As a result, GA4 may create a new client or session.

Use Chrome Developer Tools to investigate:

  1. Open the Network tab.
  2. Enable Preserve Log.
  3. Click the cross-domain link.
  4. Inspect each document request.
  5. Review redirect responses and destination URLs.
  6. Identify where _gl disappears.

Ask your developer to preserve the relevant query parameters through necessary redirects.

Check these areas:

  • HTTP-to-HTTPS redirects.
  • WWW-to-non-WWW redirects.
  • Login redirects.
  • URL shorteners.
  • Server routing rules.
  • CDN and caching configurations.
  • JavaScript redirects.
  • Single-page application routers.

Where possible, link directly to the final destination URL.

5. Fix JavaScript Buttons and Navigation Issues

Google's automatic cross-domain linker is designed to work with eligible hyperlink interactions.

A standard HTML link looks like this:

<a href="https://example-booking.com/schedule">

Book Appointment

</a>

This type of link can normally be decorated when cross-domain measurement is configured.

However, some websites use JavaScript buttons:

<button onclick="window.location.href='https://example-booking.com/schedule'">

Book Appointment

</button>

The second example may bypass automatic link decoration.

Other scripts can interfere with event propagation by using methods such as:

event.stopPropagation();

If the click event does not reach the relevant Google tag listener, the linker may not decorate the URL.

Work with your developer to:

  • Use standard hyperlinks where practical.
  • Review custom navigation scripts.
  • Identify scripts that interfere with click events.
  • Test whether JavaScript redirects preserve linker information.

A button can look and behave the same for customers while using a properly configured hyperlink underneath.

6. Resolve Cross-Domain Form Submission Issues

Many lead generation websites redirect visitors to a separate domain after a form submission.

For example:

Marketing Website

↓

Lead Form Submission

↓

External Booking Platform

↓

Appointment Confirmation

Standard link decoration may not cover this type of navigation.

For direct gtag.js implementations, developers can evaluate the linker form decoration setting:

gtag('set', 'linker', {

'domains': [

'example.com',

'example-booking.com'

],

'decorate_forms': true

});

This configuration should be applied before the relevant Google tag configuration and tested with the actual form behavior.

It is not a universal fix for GTM-managed forms, AJAX submissions, or JavaScript-generated redirects.

If the form uses a third-party provider, review whether the provider supports GA4 integration, attribution forwarding, or cross-domain measurement.

Custom solutions should respect consent requirements and avoid exposing persistent identifiers in shareable URLs.

7. Fix Unwanted Referrals Without Hiding the Real Problem

A common mistake is adding checkout and booking domains to the unwanted referral list without fixing cross-domain measurement.

These are two different features.

FeaturePurpose
Cross-Domain MeasurementPreserves relevant client and session identifiers across domains
Unwanted ReferralsPrevents specified referring domains from being treated as new referral sources

Adding a domain to unwanted referrals does not repair a broken linker or reconnect separate client identifiers.

To configure unwanted referrals:

  1. Open GA4 Admin.
  2. Select Data Streams.
  3. Open the relevant web data stream.
  4. Click Configure Tag Settings.
  5. Open Show All settings if required.
  6. Select List Unwanted Referrals.
  7. Add appropriate referral conditions.
  8. Save the changes.

Payment processors are common candidates when they appear as unwanted referral sources.

Correctly configured cross-domain measurement already includes handling for referrals between participating domains. Avoid adding every external website to the unwanted referral list.

Fix measurement continuity first, then address remaining referral problems.

8. Check Consent Mode Across All Domains

Inconsistent consent settings can interrupt GA4 Cross Domain Tracking even when the domain configuration is correct.

Consider this example:

DomainAnalytics Storage
Main WebsiteGranted
Booking WebsiteDenied
Checkout WebsiteGranted

Depending on the implementation, GA4 may be unable to maintain cookie-based measurement across the entire journey.

Review these Consent Mode signals:

  • analytics_storage
  • ad_storage
  • ad_user_data
  • ad_personalization

For GA4 cookie-based session continuity, analytics_storage is particularly relevant.

Use Google Tag Assistant to inspect consent initialization and updates on each domain.

Check whether:

  • Consent defaults are established before measurement tags run.
  • The consent management platform updates consent correctly.
  • Consent choices are shared across domains where supported and permitted.
  • Regional consent configurations behave as intended.

Test accepted and declined consent journeys separately.

If tracking works when analytics consent is granted but not when it is denied, the difference may reflect expected privacy behavior rather than a technical fault.

Never override a visitor's consent choice to improve attribution.

9. Check for Missing or Duplicate Google Tags

Installing GA4 on the main website is not enough. The receiving domain also needs the appropriate Google tag.

Common problems include:

  • GTM is missing from the checkout website.
  • The Google tag does not fire on the booking page.
  • The website theme and GTM both initialize GA4.
  • A third-party plugin sends duplicate events.
  • The destination uses a different measurement ID.
  • Consent settings prevent the tag from loading.

Open GTM Preview mode and test each domain.

Confirm that the intended Google tag initializes correctly and that events are not sent multiple times by overlapping implementations.

Duplicate tags do not always create separate client identifiers, but conflicting configurations can cause inconsistent tracking and duplicate events.

10. Troubleshoot Iframes and Third-Party Booking Platforms

Embedded booking tools and payment forms can create additional measurement challenges.

A Google tag installed on the parent website cannot automatically access every interaction inside a cross-origin iframe.

This is common with:

  • Appointment scheduling widgets.
  • External contact forms.
  • Donation platforms.
  • Embedded checkout systems.
  • Third-party application forms.

Possible solutions include:

  • Using the provider's native GA4 integration.
  • Implementing supported iframe event communication.
  • Capturing permitted attribution information in CRM fields.
  • Using documented webhook or server-side integrations.
  • Tracking confirmed conversions through supported provider APIs.

For businesses using CallRail integrations or Zapier integrations, CRM and lead attribution data can provide additional visibility when third-party platforms restrict browser-based measurement.

Server-side tracking can improve conversion reporting in supported situations, but it does not automatically restore broken GA4 sessions or remove consent requirements.

11. Review Custom Linker and Cookie Settings

Advanced implementations may contain custom configurations that interfere with standard cross-domain measurement.

One example is the accept_incoming setting in a direct Google tag implementation.

gtag('set', 'linker', {

'accept_incoming': false

});

This setting prevents the receiving tag from accepting incoming linker information.

If it is unintentionally disabled, review whether the configuration should be removed or changed.

gtag('set', 'linker', {

'accept_incoming': true

});

Also review custom cookie settings, including:

  • cookie_domain
  • cookie_prefix
  • cookie_path
  • Custom client identifier overrides.

Businesses that use multiple GA4 properties on the same website should take particular care when changing cookie settings.

Cross-domain measurement can affect existing identifiers on the destination website. Test advanced changes before deploying them to production.

12. Check Content Security Policies and Browser Restrictions

A Content Security Policy, commonly called CSP, controls which resources a website can load.

An incorrectly configured policy may prevent Google Tag Manager or Google Analytics from loading or sending measurement requests.

Open Chrome Developer Tools and inspect the Console tab for security errors.

Look for blocked requests involving Google Analytics or Google Tag Manager.

If a policy blocks legitimate measurement resources, ask your developer to review the necessary script and connection permissions.

Do not disable the entire security policy to make tracking work.

Browser privacy features and ad blockers can also prevent analytics requests or remove tracking parameters.

Test with a clean browser profile to identify implementation issues, while recognizing that some measurement loss caused by user privacy choices is unavoidable.

13. Verify That the Final Conversion Event Fires Correctly

A working cross-domain setup does not guarantee that purchases or leads are being recorded.

The final conversion event must also fire at the correct completion point.

For ecommerce websites, the purchase event should represent a confirmed transaction and include accurate transaction information.

For lead generation websites, the generate_lead event should represent a successful lead submission rather than an unsuccessful form attempt.

Check that:

  • The event fires on the correct domain.
  • The event reaches the intended GA4 property.
  • Relevant event parameters are included.
  • Duplicate conversions are prevented.
  • The appropriate event is marked as a key event.

This is particularly important for businesses running Google Ads Search campaigns, where inaccurate conversion measurement can affect campaign evaluation and bidding decisions.

Want help turning this into results for your business?

Explore our Tracking services →

How to Test GA4 Cross Domain Tracking Using Chrome Developer Tools

The most reliable diagnostic approach is to compare actual GA4 measurement requests across both domains.

Step 1: Start a Fresh Test Session

Open a new private browser window or clean browser profile.

Disable unrelated extensions for the controlled test and make the appropriate consent choice.

Step 2: Open the Network Panel

Open Chrome Developer Tools and select Network.

Enable Preserve Log and filter for:

collect

Look for the relevant GA4 measurement requests, commonly sent to a /g/collect endpoint.

Step 3: Inspect the Source Website Request

Open a GA4 request and inspect its query string or payload.

Common request parameters include:

ParameterMeaning
tidMeasurement ID
cidClient ID
sidSession ID
enEvent name
dlPage location
drPage referrer

Record the measurement ID, client ID, and session ID.

Step 4: Navigate to the Second Domain

Click the actual booking or checkout link.

Inspect the destination URL and any redirects.

Step 5: Compare the Destination Request

ParameterMain WebsiteBooking Website
Measurement IDG-ABC1234567G-ABC1234567
Client ID123456.987654123456.987654
Session ID17640000001764000000
ResultOriginal SessionSession Continued

Illustrative measurement values.

During an immediate, consented test journey, matching identifiers provide strong evidence of successful continuity.

If the client ID changes, investigate the identity handoff. If only the session ID changes, investigate session handling, timing, consent, and tag configuration.

Step 6: Complete the Conversion

Finish the booking, form submission, or test purchase.

Confirm that the final event reaches GA4 and contains the expected identifiers.

How to Verify Cross-Domain Tracking in GA4 Reports

After completing technical testing, review your processed GA4 reports.

DebugView

Navigate to Admin and open DebugView.

Check whether events from both websites appear in the expected sequence.

Review the page location and conversion event details.

Traffic Acquisition

Navigate to:

Reports → Acquisition → Traffic Acquisition

Review:

  • Session source/medium.
  • Session default channel group.
  • Sessions.
  • Key events.
  • Total revenue.

Look for unexpected referrals from your own websites, booking systems, or payment providers.

Explorations

Create a funnel or path exploration to examine how visitors move between the main website and conversion domain.

Use page locations or hostnames to distinguish activity across websites.

Standard reports require processing time. Use network requests and DebugView for immediate technical checks.

Example: How Broken Cross-Domain Tracking Affects Marketing Decisions

Consider a business spending $2,000 on Google Ads that generates 40 campaign-driven bookings.

A broken measurement setup causes 15 bookings to appear under referral or direct traffic.

MetricBroken AttributionCorrect Attribution
Google Ads Spend$2,000$2,000
Actual Campaign Bookings4040
Bookings Attributed to Paid Search2540
Bookings Misattributed150
Calculated Cost per Booking$80$50

Hypothetical example showing the impact of attribution errors.

The campaign generates the same number of bookings in both scenarios. Only the reporting changes.

Without accurate tracking, the business might reduce its advertising budget based on an apparent cost per booking of $80 instead of $50.

GA4 Cross-Domain Tracking Troubleshooting Checklist

CheckExpected Result
GA4 Measurement IDSame intended web stream across domains
Domain ConfigurationAll relevant domains configured
Linker ParameterGenerated during eligible navigation
RedirectsPreserve required linker information
Client IDMaintained across the tested journey
Session IDMaintained during the active session
Google TagLoads correctly on participating domains
Consent ModeRespects visitor choices on every domain
Referral HandlingNo inappropriate self-referrals
Conversion EventsRecorded at confirmed completion points
Duplicate EventsNo unintended duplicate measurement
GA4 ReportsAcquisition and conversion data reviewed

Repeat these checks whenever your business introduces a new booking platform, checkout provider, website redesign, consent banner, or tracking implementation.

How Heureux IT Helps Businesses Fix GA4 Tracking Issues

Accurate marketing decisions depend on reliable conversion data.

Heureux IT helps businesses identify and resolve GA4 Cross Domain Tracking issues across websites, ecommerce platforms, booking systems, and lead generation funnels.

Our tracking and digital marketing services cover:

  • Google Analytics 4 configuration.
  • Google Tag Manager implementation.
  • Cross-domain measurement troubleshooting.
  • Conversion tracking audits.
  • Consent Mode configuration.
  • Ecommerce event tracking.
  • CRM and advertising integrations.
  • Campaign attribution analysis.

Whether you run Google Ads or Meta Ads campaigns, a reliable measurement setup helps you evaluate where your leads and sales come from.

Final Thoughts

GA4 Cross Domain Tracking issues can affect an entire marketing strategy without causing any visible problems on the website.

The best way to resolve these issues is to follow the actual customer journey and identify where measurement continuity fails.

Start by verifying the measurement ID, domain configuration, linker parameter, and Google tag installation. Then investigate redirects, JavaScript navigation, forms, consent settings, and third-party platforms.

Do not rely on unwanted referral settings alone. Confirm that client and session identifiers remain consistent during an eligible test journey.

Accurate tracking will not create additional sales by itself, but it can help businesses understand campaign performance and make better advertising decisions.

Frequently Asked Questions

What is GA4 Cross Domain Tracking? +

GA4 Cross Domain Tracking allows Google Analytics 4 to preserve user and session identifiers when visitors move between different domains using the same GA4 web data stream.

Why is my GA4 cross-domain tracking not working? +

Common causes include incorrect domain configuration, different measurement IDs, missing Google tags, stripped linker parameters, JavaScript navigation, and inconsistent consent settings.

What is the _gl parameter in GA4? +

The _gl parameter is Google's linker parameter. It carries encoded measurement information between configured domains to support user and session continuity.

How do I enable cross-domain tracking in GA4? +

Open GA4 Admin, select Data Streams, open your web data stream, click Configure Tag Settings, and select Configure Your Domains. Add the relevant domains and test the implementation.

Do subdomains require GA4 cross-domain tracking? +

Subdomains sharing the same root domain generally do not require separate cross-domain configuration because GA4 normally shares cookies at the root domain level. Custom cookie or consent settings may require additional troubleshooting.

Does excluding unwanted referrals fix cross-domain tracking? +

No. Unwanted referral settings prevent specified domains from being treated as referral sources. They do not restore missing client identifiers or repair broken session continuity.

Can Consent Mode affect GA4 cross-domain tracking? +

Yes. Different consent states across domains can affect cookie storage, tag behavior, and session continuity. Measurement must respect the visitor's consent choices.

How do I test cross-domain tracking using GTM? +

Use GTM Preview mode, Google Tag Assistant, GA4 DebugView, and browser network requests. Verify tag firing, linker information, measurement IDs, and client and session identifiers across the customer journey.

Can cross-domain tracking work with different GTM containers? +

Yes. Websites can use different GTM containers while participating in the same GA4 cross-domain measurement setup. They must send data to the intended shared GA4 web data stream.

Will fixing GA4 cross-domain tracking improve Google Ads performance? +

Fixing cross-domain tracking can improve measurement accuracy and campaign evaluation. If the corrected conversion data is used by Google Ads, it may also support better optimization decisions, but it does not guarantee improved campaign performance.

Heureux ITPaid Growth & SEO for Growing Businesses

Heureux IT is a digital marketing agency specialising in Google Ads, Meta Ads and SEO. We help growing businesses turn paid and organic search into measurable revenue.

Want results like this for your account?

Book a free audit and we will show you exactly where your budget is going and the changes that move it most.

Book your free audit →

Keep reading