Comparing Multiple GA Segments on a Chart in Data Studio

  • orange slices

Comparing Multiple GA Segments on a Chart in Data Studio

Data Studio’s native Google Analytics connector makes it easy to build customized reports and dashboards using your GA data. In just a few clicks, you can get access to the wealth of dimensions, metrics, and segments from your GA property.

There are however some limitations to how you can use GA assets in Data Studio. One obstacle many people encounter is that only one GA segment can be applied to a single chart. If you are a power user of GA, you’ve likely become accustomed to having the ability to compare up to 4 segments at the same time. This isn’t possible with the native segment functionality in Data Studio, but we have a solution!

In this post we’ll show how you can use Data Studio’s Data Blending feature to compare multiple GA segments on the same chart!

Comparing Multiple GA Segments on a Chart

In this example, we’ll create a time series chart that compares the trends of organic sessions vs. total sessions. The data we’re using is from the Google Merchandise Store demo account.

1. Create a chart with All Sessions

  1. Insert a time series chart of Sessions.
  2. Rename the Sessions field in the chart to “All Sessions”. (For reference, see Edit fields in your reports).

2. Create a chart with Organic Sessions

  1. Insert a second time series chart of Sessions (as in step 1a above).
  2. Apply the Organic Sessions segment to the chart.
  3. Rename the Sessions field in the chart to “Organic Sessions”

3. Blend the charts together

  1. Select both charts, right click on the selection, and select Blend Data.
  2. Voila!

Data Studio allows you to blend up to 5 data sources in the same chart, so this method can be extended to include up to 5 GA segments. It also applies to any chart type, not just time series. Combined with chart-specific calculations, you can also calculate ratios between segments (e.g. organic % of total sessions).

Below is a Data Studio report we built to showcase some of what’s possible using data blending with segments. Let us know what else you’d like to do with your GA data in Data Studio!

Complete list of posts in our 2018 edition 12 Days of Data Studio series:
1. ClickInsight Data Viz Gallery
2. Comparing Multiple GA Segments on a Chart in Data Studio (this post)
3. Exporting to PDF from Data Studio
4. Using Bookmarks Links in Data Studio
5. Keyboard Shortcuts for Data Studio
6. Creating Heat Maps in Google Data Studio
7. Using Charts as Interactive Filters in Data Studio
8. Creating Diverging Bar Charts in Data Studio
9. Creating Thumbnail Images of Data Studio Reports
10. Embedding URLs in Data Studio
11. Open Source Community Connectors for Data Studio
12. Create Custom Charts with Data Studio Community Visualizations

By |2019-05-17T11:55:18-04:00December 4th, 2018|4 Comments
Categories: Data Studio


  1. Johan 2019-01-03 at 10:40 - Reply

    Can you clarify how you managed to create the Scorecard chart with % of organic of total sessions?
    In other words, how can you combine 2 segments to calculate ratios between them, and show them in a single scorecard

    • Marc Soares 2019-01-03 at 11:51 - Reply

      Hi Johan,

      The steps described in the post above will allow you to combine both segments onto the same chart using data blending. To calculate a ratio between the segments, you need to create a chart-specific calculated field in the blended chart. See this article in the help centre for instructions on creating a chart-specific calculation: Create a chart-specific calculated field.


  2. JF Amprimoz 2019-07-02 at 14:18 - Reply

    Hi Marc, this is a great tip!

    Is there a way to add a selector to let the user chose what Segment they look at? Or for that I either have to make Filters to match the Segments, or do something like provide links to another pages with the different Segments loaded?


    • Marc Soares 2019-07-08 at 14:28 - Reply

      Hi JF,

      Unfortunately, segments cannot be parameterized based on user input when connecting directly to GA. So, you cannot create a filter control to change the segment in a chart. As you suggest, you can create separate pages for each segment.

      If you have an ETL process in between (in a Google Sheet, for example) you can extract data for all the required segments and then use the segment name dimension as a filter control.


Leave A Comment