How do I add a cross-domain tracking snippet
-
I have a primary domain and an ecommerce domain and would like GA to track both within the same property using cross-domain tracking. In order to do this, I need to inject more code with the default tracking snippet.
ga(‘create’, ‘UA-XXXXXXX-Y’, ‘example-1.com’);
Needs to become…
ga(‘create’, ‘UA-XXXXXXX-Y’, ‘auto’, {‘allowLinker’: true});
ga(‘require’, ‘linker’);
ga(‘linker:autoLink’, [‘example-2.com’]);How would I do this in Site Kit?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How do I add a cross-domain tracking snippet’ is closed to new replies.