# Cross-domain tracking

> Cross-domain tracking keeps one visitor as one user across your domains in GA4. How the _gl parameter works, the Admin path, limits, and a quick link check.

Canonical: https://scaplet.com/glossary/cross-domain-tracking

Glossary Glossary · Measurement

Cross-domain tracking keeps one visitor as one user across your domains in GA4. How the _gl parameter works, the Admin path, limits, and a quick link check.

2 min

read

1

sources

Oct 31, 2026

updated

Scaplet Editorial Team

author

In one line

Cross-domain tracking, which Google calls cross-domain measurement, attributes activity to a single user as they move between domains, such as a main site and a separate checkout domain. Without it each root domain sets new cookies and one person looks like several users.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcross-domain-tracking%20(%22Cross-domain%20tracking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcross-domain-tracking%20(%22Cross-domain%20tracking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcross-domain-tracking%20(%22Cross-domain%20tracking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fcross-domain-tracking%20(%22Cross-domain%20tracking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

5 facts from the sources below

_gl URL parameter

Passes IDs via

Same Google tag ID on every domain

Needs

Up to 100

Conditions

Editor

Min role

Required for first-party cookies

Cookie consent

_01_At a glance

## What breaks without it

Each root domain gets its own cookies, so a visitor who crosses from `example.com` to a separate checkout domain becomes a new user in a new session. With the feature on, IDs pass between domains in the `_gl` URL parameter when a user follows a link or submits a form.

Part

### `_gl`

Job

URL parameter that carries the IDs between domains on a link click or form submit

Part

### Same Google tag ID

Job

Every page on every domain must use the same G- ID from one [web data stream](/glossary/data-streams)

Part

### Configure your domains

Job

The Admin list of domain match conditions the tag listens for

Part

### OR logic

Job

Multiple conditions are combined with OR

A decorated link (example shape)

```
https://checkout.example-pay.com/cart?_gl=1*abc123*...
```

Per Google, outbound clicks to listed domains also stop firing enhanced measurement outbound-click events.

_02_How it works

## Set it up in Admin

**Match types**Google's page tells you to choose a match type but does not list the options. Check the dropdown in your property.

Subdomains: Google recommends this setup but warns of self-referrals. Mitigations it names include tagging all pages, aligning cookie domain settings and adding subdomains to the exclusion list.

1. 01

### Open the stream

In Admin, under Data collection and modification, click Data streams, click Web, then select the stream.
2. 02

### Open tag settings

At the bottom of the stream details click Configure tag settings, then in Settings click Configure your domains.
3. 03

### Add domains

Accept recommended domains with Add, or click Add condition under Include domains that match the following conditions. Choose a match type and enter the domain, for example `example.com`.
4. 04

### Save

Repeat for each domain and click Save.

_03_At a glance

## Where it silently fails

Cause

### A redirect that drops [query parameters](/glossary/url-parameters)

Effect

`_gl` is stripped and the user arrives as new. Keep `_gl` through redirects

Cause

### Navigation started by JavaScript, not a click or form

Effect

Google says this is not handled

Cause

### A script that stops event propagation

Effect

The listener may never append `_gl`

Cause

### No first-party cookie consent

Effect

IDs are not passed. See [consent mode](/glossary/consent-mode)

**A second Google tag ID breaks the link**Google requires the same G- ID on every domain from the same web data stream. A different ID on the destination means a different stream and no joined user.

_04_How it works

## Check it in 2 minutes

1. 01

### Click through

On the first domain, click a link or submit a form that goes to the second domain.
2. 02

### Read the URL

Confirm the destination URL contains `_gl`, for example `?_gl=1*...`.
3. 03

### Test the details

Confirm the page loads and any downloads still start.

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ Do subdomains need cross-domain tracking?

Google recommends the setup for subdomains too and warns about self-referrals, so tag every page, align cookie domain settings and use the exclusion list.

_02_ How do I check that it works?

Click a link to the other domain and look for the _gl parameter in the address bar.

Sources · 1

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [[GA4] Set up cross-domain measurement](https://support.google.com/analytics/answer/10071811) support.google.com · checked 2026-11-01

## Keep learning

[All glossary](/glossary)

[Learn Server-side tagging Measurement](/glossary/server-side-tagging) [Related UTM parameters Measurement](/glossary/utm-parameters) [Read next Consent mode Measurement](/glossary/consent-mode) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Critical CSS](/glossary/critical-css) [Critical rendering path](/glossary/critical-rendering-path) [Cumulative Layout Shift (CLS)](/glossary/cumulative-layout-shift)

More in Measurement
[BigQuery export](/glossary/bigquery-export) [Bot traffic](/glossary/bot-traffic) [Bounce rate](/glossary/bounce-rate) [Bulk data export](/glossary/bulk-data-export) [Burn rate](/glossary/burn-rate) [CAC payback](/glossary/cac-payback) [Churn rate](/glossary/churn-rate) [Click-through rate](/glossary/click-through-rate) [Consent mode](/glossary/consent-mode) [Conversion rate](/glossary/conversion-rate) [Conversion rate optimization (CRO)](/glossary/conversion-rate-optimization) [Conversion tracking](/glossary/conversion-tracking) [Cross-domain tracking](/glossary/cross-domain-tracking) [CSAT (customer satisfaction score)](/glossary/csat) [Custom dimensions](/glossary/custom-dimensions) [Customer acquisition cost (CAC)](/glossary/customer-acquisition-cost) [Dark social](/glossary/dark-social) [Data layer](/glossary/data-layer) [Data retention](/glossary/data-retention) [Data streams](/glossary/data-streams) [Data thresholds](/glossary/data-thresholds) [Data-driven attribution](/glossary/data-driven-attribution) [Default channel group](/glossary/default-channel-group) [Direct traffic](/glossary/direct-traffic)

Terms on this page
[Data streams](/glossary/data-streams) [URL parameters](/glossary/url-parameters) [Consent mode](/glossary/consent-mode)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
