[GA4] Generate Exploration report using event parameters
- Presumption:
- You are using GA4 + GTM (optional)
- You submit to GA a custom event (e.g. mycustomevent) with some event parameters
- e.g. {"key1": "value1", "key2": "value2"}
- Now you want to generate a report based on `key1` to see how many events happened
- Here is how:
- You first define a "Custom Definition"
- As of this writing, it is in: Admin - Property Settings - Data display - Custom definitions
- Click "Create Custom Dimension"
- Set whatever dimension name you want.
- For example in my case the name is: "Key 1"
- Scope set to "event" (default)
- Enter any description, or not if you don't want to
- Event parameter: enter value that is "Exactly" as you defined in event parameters.
- For example in my case, it is "key1"
- Click save.
- Now go to "Explorer" in your GA dashboard on the left
- Create or select a report you want to edit
- In "dimension" on the left, click the "+" button to add a new dimension
- In the right-sliding page, under "Custom" tab at the nearly top, select "Custom"
- You should be able to see your custom defined dimension
- There are times that, after you define your custom dimension, you cannot see your custom dimension in this page.
- No worries. It is not updated yet.
- Refresh the page or wait after 1 - 3 mins and refresh the page and that would be fine.
- Select those and use it just like other predefined dimension.
- Points to note:
- After you define your custom dimension, it is normal to think that you can get history data using those dimension, even if those data were sent way before the dimensions are defined.
- But NO. You cannot. You will not get back those data in exploration report.
- But you can get it via Google BigQuery, with custom SQL.
- Google applies quota to the number of custom dimension defined. At the time of this writing, it is 50. Beware when you have a lot of custom dimension to be defined.
- References:
- https://www.perplexity.ai/search/let-s-say-i-am-using-google-an-o.dQeHypT8WBmz5XS4XPPg
- https://www.youtube.com/watch?v=AaCnaI_tqes
Hope it helps someone.
Comments