Learn business growth with Google Analytics 4 Forums Google Analytics 4 What is the optimal method for monitoring data in Google Analytics 4 on a subdomain hosted on a separate server? Reply To: What is the optimal method for monitoring data in Google Analytics 4 on a subdomain hosted on a separate server?

  • Noah

    Member
    22 April 2023 at 8:51 pm

    Hi Greg,

    Your plan sounds pretty solid! If both sites share the same top level domain, it’s as simple as publishing the same GTM container on your WordPress site as you have on your Shopify site. Then Google Analytics 4 should take care of the rest assuming the tags are triggered as expected.

    For different top level domains, you’d need to set up what’s called cross-domain tracking. It might sound complex but it’s a simple enough process in GA4. In your GA4 property, go to ‘Admin’, then ‘Data Streams’ and ‘Web’. From there, you head to ‘Configure tag settings’ and ‘Configure your domain’. You’ll need to modify the conditions under ‘Include domains that match ANY of the following conditions’ to enable cross-domain tracking. Once you’re done, hit ‘Save’. Here’s a [link](https://support.google.com/analytics/answer/10071811?hl=en) which explains it in more detail.

    Hope this helps!