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

  • 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.