Victoria Lunetskaya
Victoria Lunetskaya

Reputation: 23

How to set up cross-domain tracking in GA4?

How to set up cross-domain tracking in GA4 right?

I followed official instructions: [GA4] Set up cross-domain measurement

I've added all the domains I need to the Date Stream Details - More Tagging Settings - Configure your Domains.

Added 'Google Analytics: GA4 Configuration' tag on the website using Google Tag Manager.

But now, when switching between domains, a lengthy parameter

(smth like "?_gl=11lop9ld*_gaNDcxNTp2McYzKjE2LTcxMjQwKLv._ga_3JP1WO1NB3MTYxNzEyNDA4Ny8xLjEuKOPxNzEyNLI5Ny40Nw..")

is added to the page address and the page does not open, a 404 error appears.

What could be the problem?

Upvotes: 2

Views: 741

Answers (1)

GersonLCSJunior
GersonLCSJunior

Reputation: 383

As @Tony McCreath said, It might be a problem on the website's end on handling unexpected query parameters. I already faced this problem while working on a client website, and there was nothing that could be done on the Analytics side to fix the issue. You can test if that's the case by adding any random parameters at the end of the URL to see if the website still works.

The lengthy parameter that is added to the URL is the way Google uses to identify that a user is coming from another domain. It's basically an ID that will link the user from the previous domain to the current one.

Upvotes: 0

Related Questions