Google Analytics 4 (GA4) provides a user interface that allows you to create and modify events.
To create a event;
- Go to the Admin section of your account.
- Under the Property column, click on Events .
Creating An Event
You can create an event with its own parameters, independent of other events, or in relation to another event and its parameters.
For example, you can create an event that includes the number of views of the thank_you page and mark it as a conversion.
You can use the " condition " feature to specify conditions under which an event should be triggered. For example, you might use a page_view event as the source event, and specify that the thank_you event should be triggered once the page_view event is triggered and the page_location parameter contains the value "thank_you".
To do this, you can follow these steps:
- Open the GA4 interface and navigate to the Events tab.
- Click on the " Create event " button.
- Enter a name for your event (e.g. "thank_you") and select a category for it. You can choose from a list of predefined categories, or create your own custom category.
- Under the " Trigger " section, select "page_view" as the source event.
- In the " Condition " field, enter a condition that specifies when the thank_you event should be triggered. For example: "page_location contains 'thank_you'".
- If you want to access other parameters of the page_view event through the thank_you event, you can select the "copy parameters from the source event" option.
- If you want to make changes to a parameter coming from the source event or remove a parameter, you can use the "Modify parameters" field to specify the changes.
Using the "condition" feature in GA4, you can track specific actions that users take on your website or app, which helps you get a deeper understanding of how users interact with your site. This way, you can make informed decisions about how to improve the user experience and drive more conversions.
Events created are listed in real-time reports as soon as they are triggered; however, it takes time for them to appear in event reports. Meanwhile, you can view the events and their respective parameters via DebugView during the testing process.
If no other situation applies, you should not prefer events triggered by GA4 by default (page_view, scroll, etc.) or events listed under suggested events (add_to_cart, purchase, view_cart, etc.) as names when creating events.
These types of events can only be used if not directly triggered and in necessary circumstances. Otherwise, they can lead to issues such as multiple data counts.
Modifying An Event
Modifying an event, just like creating an event, is also based on a source event.
You can specify the parameters associated with the source event in the modify parameters field. If the event only has some certain conditions, you can perform the changes accordingly - once those parameters, such as Currency, Page_Location, etc., meet the conditions.
You can modify an existing parameter value, or remove it. This is applied to the specified source event, therefore, you need to give it a proper name in the modification name section.
Resource: https://support.google.com/analytics/answer/10085872
To learn how to manually add the add_shipping_info and add_payment_info events to your reports with GA4 event creation, click here.