Page 1 of 1

Tracking users across domains

Posted: Tue Jan 21, 2025 4:03 am
by shaownhasan
</script>
Line 8 of the above code

gtag('config', ' UA-XXXXXXXX-XX ');

Change that part to the following:

gtag('config', ' UA-XXXXXXXX-XX ', {
'linker': {
'domains': [' aaaaa.com ', ' bbbbb.com ']
}
});
Please replace UA-XXXXXXXX-XX with your tracking board members email lists ID, and aaaaa.com and bbbbb.com with the cross-domain target domains.

▼ Related article:

2) Creating a filter
Google Analytics reports do not show domains. If the page path or page title is the same on a different domain, it will be displayed as one page. If it is left displayed as one page, sessions for two pages will be totaled, and the correct page transitions cannot be measured. To separate the display, you need to create a filter. The method for creating one is as follows.