Data Clean Up In Looker Studio 8211 Remove Empty Ga4 Parameters

Data Clean Up In Looker Studio 8211 Remove Empty Ga4 Parameters

Management Summary

Misspelled words, stubborn trailing spaces, and incorrect capitalization make a bad first impression when analyzing data, but they can be easily remedied using various features in Looker Studio. A simple approach in Looker Studio helps to easily clean up data views to exclude fields that do not contain a value and are passed empty.

It’s time for a New Year’s cleaning! Start 2023 with a clean data view in your Looker Studio dashboard and use our tricks to hide empty fields in your charts.

Where do empty values ​​come from in Google Analytics?

Especially in Google Analytics 4, parameters often appear with empty fields that are not filled but are still passed. There are several reasons for this: on the one hand, the GA4 parameter can be intentionally passed empty, e.g. if no option was selected in the multiple choice selection or if a previous selection of options is removed again. However, if the empty fields have no analytical meaning in the graph, they should be filtered out of the visualization. The following example can be illustrated with the data from the Google Analytics demo account ‘GA4 Google Merchandise Store’:Data Clean Up in Looker StudioDimension = shopping_tier
Metric = Event Count

problem

In 12 events, the custom dimension shopping_tier was passed with an empty value. These results are not relevant for the analysis.

There is currently no easy solution in Looker Studio to exclude empty fields, for example with a filter.Data Clean Up in Looker Studio - Filter

Solution:

A possible solution consists of two steps:

  1. Create a new custom field that uses the CASE WHEN function to replace the empty value with a placeholder value, here ’empty’:

Data Clean Up in Looker Studio - benutzerdefiniertes Feld erstellenThis function replaces the empty field (= no value, including no space) with the string ‘empty’. If a value is already passed, the second part of the function ensures that this value continues to be passed (‘ELSE shipping_tier’).Data Clean Up in Looker Studio - leeres Feld ersetzenleft: Dimension = shipping_tier

right: Dimension = shipping_tier ‘empty’

  1. With the newly created field, the value ‘empty’ can now be extracted with a filter.

Data Clean Up in Looker Studio - Wert extrahierenThe empty GA4 parameter value no longer appears in the final data view.Data Clean Up in Looker Studio - finale Ansicht

Conclusion:

Depending on the GA4 setup, values ​​passed empty can have different meanings in the statistical evaluation. This should always be compared with the concept so as not to manipulate or eliminate important insights. However, if the empty values ​​do not have statistical meaning, dashboards can be optimized using this solution.

If you have any questions or would like to provide support, our analytics experts will be happy to assist you:kontakt@e-dialog.group

e-dialog office Vienna
Relevant content

More about Analytics