Learn business growth with Google Analytics 4 Forums Google Analytics 4 Implementing Separate Tracking in GA4 for Multiple Subdomains

  • Implementing Separate Tracking in GA4 for Multiple Subdomains

    Posted by Thomas on 25 October 2022 at 4:36 pm

    Hey there, could use a hand with a GA4 setup. With universal analytics, I had multiple subdomains each with their own view, but I can’t seem to figure out how to do the same with GA4.

    Here’s the situation: I’ve set the tag to http://www.xxxxx.com, but I want to track these separately:

    http://www.xxxxx.com
    http://www.xxxxx.com/xxxxx
    http://www.xxxxx.com/xuxux
    http://www.xxxxx.com/xxyeie
    http://www.xxxxx.com/ihgei

    I remember it was pretty straightforward to do this with views, but how would I do it in GA4? I’ve been wrestling with comparisons and filters but not really getting anywhere. Is there some quicker method I’m missing or another way to set this up? Any guidance would be really appreciated, thanks a ton!

    Abdul replied 11 months ago 3 Members · 2 Replies
  • 2 Replies
  • Jacob

    Member
    17 June 2023 at 3:15 am

    In Google Analytics 4, views have been replaced with data streams, but these can’t be set up for individual page paths in the same way views were used in Universal Analytics. As a workaround, you might try creating audiences based on ‘page_view’ events where the ‘page_location’ contains the relevant path for each page you want to track separately. However, I’m not completely sure if this will work perfectly. It’s definitely a more complex setup compared to how it was done in Universal Analytics, sorry about that.

  • Abdul

    Member
    20 June 2023 at 9:01 pm

    In GA4, the concept of ‘views’ like in Universal Analytics does not exist. Instead, data streams are used. However, everything is tracked in one single data stream and then users need to use filters in the reporting interface to view data for different sections of the website separately. To track different subdomains or directories of your site, you don’t need to create separate data streams. Just create one data stream for your entire domain http://www.xxxxx.com.

    To separate the data, you can create ‘Comparisons’ in your reporting. For example, if you want to see data for http://www.xxxxx.com/xxxxx only, you would create a comparison where ‘Page path’ starts with, ends with, or contains ‘/xxxxx’. Repeat this process for each of the directories. You can then save these comparisons to go back to them later.

    Additionally, you may find the GA4’s ‘Analysis’ section useful. In the Analysis section, you can create customized reports using dimensions (such as ‘Page path’) and metrics of your choice. Using the ‘Segment’ comparison feature, you can compare user behavior across different segments of your site.

    It’s a different way of thinking about your data compared to Universal Analytics, but once you get the hang of it, these tools can be quite powerful.

Log in to reply.