[UA] Common uses for cross-domain measurement

When you set up cross-domain measurement, you can collect data from multiple websites into a single account property. This lets you see data from different sites in the same reporting view.

In some configurations, like with 3rd party shopping carts, this is ideal. In other configurations, however, we recommend that you set up multiple views: one view for all of the traffic collected in the cross-domain measurement setup, and a separate filtered views to display data only from each individual domain. This lets you analyze the traffic from all of the different domains together in one view, and use the other views to analyze data from each domain in a separate set of reports when necessary.

In this article:

Multiple domains

If you have multiple top-level domains, like www.example1.com and www.example2.com, you can set up cross-domain measurement to collect and send data from both domains to the same Analytics account property.

Subdomains

You can use cross-domain measurement to collect data from a primary domain, like www.example.com, and a subdomain, like www.subdomain.example.com, in a single Analytics account property. No additional configuration is required.

3rd party shopping carts

If you use a 3rd party shopping cart, your traffic probably has to leave your domain to complete a purchase, but you can use cross-domain measurement to measure activity through the entire checkout process, between your domain and the domain that hosts your shopping cart.

IFrame content

If you have content that displays on another domain through an iFrame or a similar technology, you can still collect data from that traffic with cross-domain measurement.

Related resources

analytics.js

gtag.js

Was this helpful?

How can we improve it?
true
Choose your own learning path

Check out google.com/analytics/learn, a new resource to help you get the most out of Google Analytics 4. The new website includes videos, articles, and guided flows, and provides links to the Google Analytics Discord, Blog, YouTube channel, and GitHub repository.

Start learning today!

Search
Clear search
Close search
Main menu
2788259873635580667
true
Search Help Center
true
true
true
true
true
69256
false
false