Sub topic 8
Deciding Which Kind of Event to Use
Assume you know the basic GA4 interface, can read simple JavaScript objects, and understand GTM tags and triggers. The goal is to choose an event design before you write tracking code.
GA4 has four practical event categories:
- Automatically collected events are sent by GA4 without extra event code.
- Enhanced measurement events are collected when you enable features in a web data stream.
- Recommended events use Google-defined names and parameter conventions.
- Custom events describe interactions that do not fit the other categories.
Start with the most specific existing option. This avoids duplicate data and makes your reports easier to compare with other GA4 properties.
A decision process
Use this order when you need to measure an interaction:
- Check whether GA4 already collects it automatically.
- Check whether enhanced measurement can collect it.
- Check Google’s recommended event list for a matching event.
- Create a custom event only when no suitable recommended event exists.
- Add parameters that provide useful context.
For example, a page view should use the existing page_view event. A site search should normally use the recommended search event with a search term parameter. A completed purchase should use purchase, not a custom name such as order_finished.
Recommended versus custom events
A recommended event is preferable when its meaning matches your interaction. GA4 and connected products can recognize its standard name and parameters. For example, use login for a successful login and include method when that information is available.
gtag('event', 'login', {
method: 'Google'
});Use a custom event when the interaction is specific to your product or when no recommended event describes it accurately. A newsletter button click might need a custom event such as newsletter_signup_click.
gtag('event', 'newsletter_signup_click', {
placement: 'footer',
plan_type: 'free'
});Do not use a custom event merely because its name sounds more natural to your team. Names such as user_logged_in and finished_order make the data harder to compare with standard GA4 reports.
| Measurement need | Preferred choice | Reason |
|---|---|---|
| Product purchase | `purchase` recommended event | GA4 recognizes commerce fields |
| Internal search | `search` recommended event | Standard reports can use the event |
| Footer newsletter button click | Custom event | No single recommended event fits exactly |
| Page view | Automatically collected `page_view` | GA4 already sends it |
Avoiding common errors
Do not send both a recommended event and a custom version for the same action unless they represent different actions. Otherwise, one user action can appear twice.
Do not rename a recommended parameter. For a purchase, use transaction_id, value, currency, and items as defined by the event specification. A parameter called order_total may be understandable to your team, but GA4 will not treat it as the standard purchase value.
Keep event names tied to actions, not page locations. Use video_start, for example, and describe the video with parameters such as video_title or video_id.
Exercise
A subscription site needs to measure a user completing registration by email. Should it use a recommended or custom event, and what event name fits?
Show answer
Use the recommended sign_up event and include a parameter such as method: 'email'. A custom event is unnecessary because a standard event matches the action.