Sub topic 2
The Four Kinds of Events: Automatic, Enhanced Measurement, Recommended, and Custom
Assume you already know the basic GA4 interface, can access a GA4 web data stream, and understand JavaScript objects and Google Tag Manager concepts. This chapter focuses on choosing the right event category. Later chapters cover implementation and validation in more detail.
GA4 uses an event-based data model. An event records something that happened, such as a page view, file download, login, or purchase. Event parameters add details to that occurrence. For example, a purchase event can include a transaction ID, currency, value, and items.
How the four categories differ
The categories describe how an event is collected and whether Google has defined its name and parameters.
| Category | How it is collected | Who defines the event name |
|---|---|---|
| Automatic | GA4 collects it when the data stream is active | |
| Enhanced measurement | GA4 collects it after you enable a setting | |
| Recommended | You implement it using Google's documented schema | Google provides the schema |
| Custom | You implement it for a need not covered by the other categories | You |
Automatic events
Automatic events are collected by GA4 without extra event code when the required platform behavior occurs. Common examples include first_visit, session_start, and user_engagement.
These events provide basic information about visits and users. You usually do not manually send them. Sending a second event with a similar meaning can create duplicate or misleading data.
Enhanced measurement events
Enhanced measurement events are collected automatically when you enable the matching options in a web data stream. They can include scroll, click, view_search_results, file_download, and video_start.
You can enable or disable these options in the stream settings. For example, enabling outbound-click measurement can let GA4 record clicks that send users to another domain. Check the setting before adding custom tracking for the same action.
The event may include parameters that provide context. A file_download event can include the file URL and file name. The exact parameters depend on the event and collection method.
Recommended events
Recommended events have names and parameters documented by Google, but GA4 does not automatically send them. You must implement them when the relevant action occurs.
Use login with its method parameter for a login. Use purchase with ecommerce parameters for a completed order. Standard names help GA4 reports and related features interpret your data consistently.
gtag('event', 'login', {
method: 'Google'
});A common error is inventing a name such as user_logged_in when the recommended login event fits. Another is using the correct name but omitting required or useful parameters.
Custom events
Custom events are for interactions that do not match an automatic, enhanced measurement, or recommended event. Use a clear, specific name and parameters that describe the interaction.
For example, a tutorial platform might track a learner opening a downloadable worksheet:
gtag('event', 'worksheet_open', {
worksheet_id: 'intro-to-ga4'
});Do not create custom names merely to rename an existing event. First check whether an existing or recommended event already describes the action.
Choosing the category
Use this order:
- Confirm that GA4 already collects the action automatically.
- Check whether enhanced measurement can collect it.
- Look for a recommended event and its parameter schema.
- Create a custom event only when no suitable predefined event exists.
Also check whether your implementation sends an event more than once. Duplicate collection is one of the most common errors when automatic or enhanced measurement is enabled alongside manual tracking.
Exercise
A website needs to measure completed orders. Should it use a custom event named order_done or the recommended purchase event?
Show answer
Use purchase with the documented ecommerce parameters, because it matches the measurement need and gives GA4 a standard meaning for the event.