English Posts

Google Analytics 4: Cross Domain Tracking

cross domain tracking google analytics 4

In this post I’ll show you how to implement cross domain tracking in the new version of Google Analytics 4.

With GA4 cross domain tracking is much easier than the Universal Analytics version, in fact:

If you don’t have already implemented the GA4 Property, I suggest you to read my post where I described how to do that.

How to implement cross-domain tracking in GA4

Let’s go inside the Admin panel at the bottom left

admin google analytics 4

Now click on Data Stream under the Properties column (where you can find the main information related to your GA4 such as the Measurement ID)

data stream google analytics 4

Select the Data Stream you are interested in, from the list you see:

select data stream

Now, scrolling the page, we have to select the More Tagging Settings item:

more tagging settings google analytics 4

At this point, select Configure your domains:

configure your domains in google analytics 4

Then select the Add condition item:

add a new domain in google analytics 4

A series of conditions will appear:

include domains that match the following criteria google analytics 4

Choose the one you think is most useful for your case and enter the domain you want to be included in the list:

adding a new domain in google analytics 4

You can add additional domains by clicking on the Add condition item or delete them by clicking on the minus sign “

add or delete a new domain in google analytics 4

Save and that’s it!

By entering the domains as I did above, for example, ‘example.it‘, this means that all subdomains, which contain the main domain ‘example.it‘ will be included.

To give a concrete example, the subdomain ‘blog.example.it‘ or ‘ga.example.it‘ will be covered by the domain ‘example.it’.

In Google Analytics 4, implementing cross-domain tracking is very quick and easy.

If you have the Universal Analytics version, just copy the domains you have implemented in the tag in GTM and insert them in GA4.

How to implement cross-domain tracking in Universal Analytics

In the Universal Analytics version it is not possible to perform the operation directly from the GA Administrator panel.

You have to implement the Google Analytics variable first.

Subsequently, within the variable you have created, you must click on the Cross Domain Tracking item:

cross domain tracking google analytics settings variable

Then, enter the domains inside the box called Auto Link Domains:

enter the domains inside the box called Auto Link Domains

Save the variable and publish the changes made.

Cross-domain tracking in Google Analytics 4 and Universal Analytics

If you want to implement the tracking of your website in parallel on both GA4 and Universal Analytics (currently the recommended choice by all experts in the industry), what you have to do is as described in the previous paragraphs.

Within Google Analytics 4 you just need to log into the Administrator panel and implement the solution in a few clicks.

With the Universal Analytics version, implemented with the help of Google Tag Manager, you have to implement the specific variable for GA and take a few more steps.

Good analysis!


You may also be interested at the following articles:

  • Server-side Tagging: what is it?
    Update: October 5th. Google Tag Manager Server Side is officially out of Beta, as confirmed by Google, and has entered a new phase. Announced in August 2020, Google Tag Manager Server-side is still a tool / theme unknown to most. There are many doubts and questions on the subject and in this post I want […]
  • Content Grouping in Google Analytics
    Analyzing the contents of a website, has it ever happened to you that you want to know what are the performances of the main sections? Each website is divided into sections, which reflect the organization of its contents. This applies to all sites, from e-commerce, which have sections of product categories, type of articles, sellout […]
  • Google Tag Manager: Lookup Table Variable
    The Lookup Table variable in Google Tag Manager allows you to read the value of an input and, if this value matches certain requirements, it will return some output. There are several situations where this variable can help us: rename a web page, rename the Source dimension for a social (Instagram, Facebook LinkedIn etc.) and […]
  • What Virtual Pages are in Google Analytics
    Pageviews are one of the best known metrics, present in almost all web analytics reports. This metric is populated with pageview hits, which are sent to Google Analytics every time we view a page or refresh the page itself. However, in recent years a series of technologies have developed that improve user navigation on the […]
  • How to track Virtual Pages: Google Tag Manager and Google Analytics
    In this post, we see how to track Virtual Pages with the help of Google Tag Manager and Google Analytics. If you don’t know what Virtual Pages are and learn more about how they can help you especially if you are tracking a Single Page Application, I suggest you to read my dedicated post. To […]
  • Google Analytics 4: Cross Domain Tracking
    In this post I’ll show you how to implement cross domain tracking in the new version of Google Analytics 4. With GA4 cross domain tracking is much easier than the Universal Analytics version, in fact: in Universal Analytics you had to set everything up within Google Tag Manager In Google Analytics 4 you can do […]

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *