Follow me on LinkedIn - AI, GA4, BigQuery

What are comparisons in Google Analytics 4?

The comparisons (advanced segments) in Google Analytics 4 allow you to evaluate subsets of your data side by side. For example, you might compare all data generated by desktop devices and all data generated by mobile devices.

In GA4, comparisons take the place of segments and filters that you’ve used in Universal Analytics properties.

Just like segments, comparisons allow you to isolate and analyze a subset of data.

For example, if you find that users from a particular device category (let’s say mobile) are no longer interacting in the same volume as they normally have, you can see whether your website is having any issues with the particular device type.

If found true, you can take the necessary actions to make your website more user-friendly and interactive for mobile devices.

Where can you build comparisons in Google Analytics 4?

You can build comparisons in all the reporting tabs available in GA4:

  1. Reports Snapshot Tab
  2. Real-time
  3. Acquisition >> Acquisition Overview
  4. Acquisition >> User Acquisition
  5. Acquisition >> Traffic Acquisition
  6. Engagement >> Engagement Overview
  7. Engagement >> Events
  8. Engagement >> Conversions
  9. Engagement >> Pages and Screen
  10. Monetization >> Monetization Overview
  11. Monetization >> Ecommerce Purchase
  12. Monetization>> In-app Purchases
  13. Monetization >> Publisher Ads
  14. Retention >> Overview
  15. Demographics >> Demographics Overview
  16. Demographics >> Demographics details
  17. Tech >> Tech Overview
  18. Tech >> Tech details

You create comparisons by creating conditions based on dimensions and dimension values. For example, all users vs users from country equals ‘United States’.

Now let’s build a comparison to understand this concept in more detail.

How to build comparisons in Google Analytics 4?

Follow the steps below to build a comparison.

Step 1: Log in to your Google Analytics 4 account and select any reporting tab where you want to build the comparison. In this example, I am selecting the ‘Report Snaphot’ tab.

Report snapshot

Step 2: Click on ‘Add comparison’.

comparisons (advanced segments) in Google Analytics 4

Another way to build a comparison is by clicking on the ‘Customize report’ option available at the top right corner.

Edit comparison

Step 3: An overlay will appear on the right-hand side, as below.

comparisons (advanced segments) in Google Analytics 4

Here we need to define the conditions for the comparison based on dimensions and dimension values. Now click on the drop-down marked ‘Include’.

6 4

Step 4: You will get a pop-up like below to select the condition. The conditions available is ‘Include’ (to include a particular dimension for comparison) and ‘Exclude’ (to exclude a particular dimension from the comparison).

Select your condition. Here I am selecting ‘Include’.

7 4

Step 5: Now click on the drop-down menu ‘Select dimension’.

8 4
9 3

Step 6: A list will pop up, like below. You can scroll down or up to select a dimension or you can simply type it in the available input box.

Once you selected the dimension another drop-down will be visible as ‘Dimension values’ as below.

10 4

Step 7: Click on the drop-down under ‘Dimension values’.

11 4

Step 8: A list will appear, like below. You can scroll down or up to select a dimension value or you can simply type it in the available input box.

12 4

You can also select multiple values. Note that ALL dimension values selected for the same condition are evaluated with ‘OR’ logic. For example, if you select ‘United States’ and ‘Canada’, users from both countries will be included in the comparison. In our example, I am selecting only ‘United States’.

Once the dimension values are selected, click on ‘OK’.

13 4

Your comparison will look like below. It will also provide you with a summary of the dimensions and conditions used while building the comparison.

Add new condition

Step 9: If you want to add more conditions to your comparison you can click on ‘+ Add new condition’.

15 4

Step 10: Repeat the steps for selecting dimensions and their value (Step 3 to Step 8).

As an example of adding a new condition, here I will be selecting device category = desktop.

16 4

Note that multiple conditions within the same comparison are evaluated with ‘AND’ logic. For example, for (Country = United States) AND (Device Category = desktop) users from United States AND those who use desktop will be included in the comparison.

17 4

You can add up to five conditions in a single comparison.

18 4

Step 11: Once you have added all the conditions, click on ‘Apply’.

Apply

Congratulations! You have successfully built a comparison in Google Analytics 4.

You can now see the data for the selected comparison side by side with all users. A colour-coded version of the data appears for each comparison.

Comparison definitions appear at the top of your reports and remain in effect as you switch reports unless they do not apply to the data in the report.

comparison 1

The blue line represents all users and the orange line represents the users from the comparison we built i.e. country = ‘United States’ AND device category = ‘desktop’.

You can click on various metrics available to check the performance of the users available in the comparison.

22 4

You can see different reports side by side with our comparison conditions.

Country report

21 4

Source Medium report

23 4

Step 12: If you want to add more comparisons, you can build up to five multiple comparisons at the same time. Just click on ‘Add comparison’.

Add more comparison

Repeat the steps for adding conditions to your comparison.

In the below image I have added four comparisons:

  • All users
  • Desktop users
  • Mobile users
  • Tablet users
25 4

Step 13: If any time you want to close the comparison click the ‘X’ to the right of the definition.

Close comparison

Limitations of comparisons in Google Analytics 4.

Since comparisons are temporally created segments there are a few limitations to it

  • You cannot save the comparisons.
  • If a report doesn’t support a condition, e.g. the report doesn’t include one of the dimensions, then a blank card appears for that comparison.For example, I have created a comparison for ALL users vs users who use the ‘Arabic’ language. In the below image you can see there are no users in real-time who use ‘Arabic’ and hence it is showing a blank card.
27 2

Not all dimension values may be available. Some dimensions are not allowed to be excluded, while others are not available due to your comparison conditions configuration.

Summary

Comparisons allow you to isolate the data for specific users using the dimensions and hence you can analyze their performance for various metrics.

You can add up to five conditions in each comparison and you can create up to five comparisons at the same time. So, that is how you can build comparisons in Google Analytics 4.

  1. Understanding Lookup Table in Google Tag Manager.
  2. Google Tag Manager Variables and Triggers Tutorial.
  3. How to find Average Order Value in Google Analytics 4.
  4. Google Ads tag still running in GTM? Here is the fix.
  5. 8 Signs Your GA4 Property Needs Expert Help.
  6. Google Tag Assistant Tutorial.
  7. Google Analytics 4 not working? Here is how to fix it.
  8. Google Analytics 4 for Low Traffic Websites.
  9. Google Tag Manager Implementation Guide.
  10. Google Tag Manager Server Side Preview Mode.
  11. How to learn Google Analytics without a website.
  12. Key Benefits of Using Google Analytics 4 (GA4).
  13. Google Marketing Platform Cost and is it Worth it?
  14. How to export GA4 data to Google Sheets for free.
  15. Top Google Analytics 4 Tools, add-ons and resources.
  16. Google Analytics 4 Audiences Tutorial.
  17. Understanding Automated Insights in Google Analytics 4 (GA4).
  18. How to build Comparisons in Google Analytics 4 (GA4).
  19. How to create a remarketing audience in Google Analytics 4 (GA4).
  20. Advanced Google Analytics Tracking – HTML DOM – Tutorial.