Use Data Studio to Replicate Adobe Analytics Rules-Based Data Dimension Classifications

If you have decided to migrate from Adobe Analytics to Google Analytics 360, you may be looking for new ways to generate the types of reports your organization used within the Adobe Analytics infrastructure. This post presents a quick and easy solution for reporting on Google Analytics 360 data in Data Studio in a way that replicates Adobe Analytics’ rules-based approach to data dimension classification.

Defining Calculated Dimensions in Data Studio

Let’s say that you want to look at your daily data using these classifications:

  • Weekend/Weekday
  • Morning/Evening

You can follow four simple steps to calculate these classifications in Data Studio based on standard Google Analytics 360 data:

  1. Connect Google Analytics as a data source in your Data Studio report
  2. Create a calculated dimension
  3. Add this function to create the Weekend/Weekday classification (calculation of day of the week data):
    CASE WHEN REGEXP_MATCH(Day of Week Name, "Saturday|Sunday") 
    
    THEN "Weekend" ELSE "Weekday" END
  4. Add this function to create the Morning/Evening classification (calculation of hourly data):
    CASE WHEN (REGEXP_MATCH(Hour, '0[0-9]|1[0-1]')) 
    
    THEN 'AM' ELSE "PM" END
Analytics Rules-Based Data Dimension

Adding the Morning/Evening classification function in Data Studio.

Reporting on Calculated Dimensions in Data Studio

Thanks to Data Studio’s calculated dimensions feature, you can report on any rules-based dimensions that your organization needs:

These line charts indicate session count over different time periods for the AM/PM and Weekday/Weekend dimension values that we calculated in Data Studio.


Patrick Soch

This post was originally written by
Patrick Soch
Digital Analytics Consultant, e-nor

Bashar Hafez

Bashar Hafez

Bashar is a seasoned global technology executive with nearly 20 years of experience leading software, product development, and analytics organizations at Fortune 500 companies, regional and global brands.

Related resources

Do you want to get more insights from your data?

e-CENS designs and builds a complete, customized digital transformation, analytics, and measurement program to drive your business forward.