This article introduces the event parameters of GA4.
What are Event Parameters
Event Parameters provide additional information about the ways users interact with your website.
For example, when someone views a product you sell, you can include parameters that describe the product they viewed, such as the name, category, and price.
Event Parameters Type
Google also provides a set of required and optional parameters to event, so the event parameters of GA4 are divided into:
Required Event Parameters
The following parameters are collected by default with every event, including custom events. There are 5 together:
- language：must be 100 characters or fewer.
- page_location：must be 1,000 characters or fewer.
- page_referrer：must be 420 characters or fewer
- page_title：must be 300 characters or fewer.
- screen_resolution：must be 100 characters or fewer.
Optional Event Parameters
Custom Event Parameters require you to create custom dimensions and metrics to see the parameter values in Google Analytics. Whenever you create a custom parameter, you need to create a corresponding custom dimension or metric so you can see that data.
Custom Event Parameters are based on value types, which can be divided into:
- Event-scoped custom dimensions：If it is text type, it is Event-scoped custom dimensions.
- Custom metrics：If it is a value type, it is Custom metrics.
|Type||Details||How it works||Standard property limits||Analytics 360 property limits|
|Event-scoped custom dimensions||Analyze an attribute about an event, such as the value of the event or whether the intended action was completed successfully.||Defined based on a custom event parameter.||50||125|
|Custom metrics||Analyze the data points from an event parameter. For example, you can analyze the value of a transaction from an event parameter.||Defined based on a custom event parameter.||50||125|
Next demonstrate how to set Custom Event Parameters
Configure Custom Event Parameters
Your configuration might look something like this:
button_label is Custom Event Parameters
Before you publish your new event in Tag Manager, click Preview to test.
The next step is to register event parameters.
In GA4，click「Admin」——「Custom definitions」——「Create custom dimension」, then do the following configuration: