• Resolved beelocal

    (@beelocal)


    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)
  • Hi @beelocal ,

    Thanks for reaching out to us.

    Site Kit doesn’t provide support for the custom code. The only way is to add the custom snippet manually where appropriate & then connect from Site Kit.

    Visit the official documentation in case if you are using Universal Tracking via Tag Manager for cross-domain measurement. In this way you can still connect to the Analytics Module to Site Kit & view the Site Kit Analytics dashboards.

    Please reach out to Tag Manager Help Center in case if you are looking for assistance regarding Tag Manager setup for cross domain tracking.

    Best Regards,

    Thread Starter beelocal

    (@beelocal)

    Thanks Abdullah for your response. So I believe what you are saying is disconnect Google Analytics from Site Kit and instead add the GA tag with the custom code in GTM instead? Then connect GTM to Site Kit?

    Yes you got it right ??

    Feel free to share your feedback about Site Kit on feedback section.

    Oddly enough, after upgrading to the latest version 1.32.0, Site Kit started adding multiple ?_ga=[random number] tags automatically to the URLs within the same domain (i.e., when I click in a product category, it adds the tag).
    After some research I figured out that this is used for cross-domain tracking. However, as I mentioned the plugin is adding this tracking code to the URL automatically and I couldn’t find a way to disable it. The only thing that solves the issue is to remove the GA snippet added by Site Kit.

    Hello @tiagosartor3 ,

    Please open a separate topic so we can serve you based on your website setup.

    Best Regards,

    @abdullahramzan Thanks for the reply. I just opened a separate ticket. Regards!

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.