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:

PII (Personally Identifiable Information): what is it?

Regular Expression (RegEx): the Guidebook

How to Link Google Analytics 4 to BigQuery

Search and Replace Filter in Google Analytics

How to delete gtm_debug=x in Google Analytics

Track Clicks within Navigation Menu with Google Tag Manager

Lascia un commento

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