I want to use Google Analytics cross domain tracking, does it only work with anchor tags?

122 views Asked by At

I'm using gtag.js and I navigated to click event. The URL does not contain the client ID. Does cross domain tracking work only with anchor tags?

1

There are 1 answers

0
Michele Pisani On

If the clientid is not in querystring then there is something in the configuration that is not right and cross-domain will not work. The clientid in the URL is used to keep the same value (_ga cookie) in the next domain, if this value is not present Google Analytics code cannot know it and will generate a new one, so the user will be seen as a different user.