Sub topic 2
Automatic, Recommended, and Custom Events
Assume you have a GA4 property with a web data stream installed, Editor access to the property, and basic familiarity with the GA4 Reports and Admin areas. You should also understand what a form submission or checkout represents on your website.
GA4 records user interactions as events. An event is a named occurrence, such as a page view, form submission, or purchase. Event parameters are additional values that describe the occurrence, such as a product ID, order value, or form type.
GA4 events fall into three practical categories:
| Event category | How it is collected | When to use it |
|---|---|---|
| Automatic or enhanced measurement | GA4 collects it without custom event code, when supported and enabled | Common interactions such as page views, scrolls, and outbound clicks |
| Recommended | You implement a Google-defined event name and parameter schema | Business actions with an established GA4 meaning, such as leads and purchases |
| Custom | You choose the event name and parameters | An interaction that has no suitable automatic or recommended event |
Automatic and enhanced measurement events
Some events are collected automatically after the Google tag is installed. For example, page_view records page views. GA4 can also collect enhanced measurement events when you enable them in the web data stream settings.
Typical enhanced measurement events include:
scroll, usually when a user reaches about 90% of a pageclick, for outbound link clicksview_search_results, when GA4 recognizes a site-search queryfile_download, for recognized downloadable filesvideo_start,video_progress, andvideo_completefor supported embedded videos
These events are convenient, but they may not match your business definition exactly. A scroll event does not prove that someone read an article. An outbound click does not prove that a partner received a referral.
Recommended events
Recommended events are not automatically collected. Google documents their names and parameters so that GA4 and related products can interpret them consistently.
For a lead form, generate_lead is usually more useful than a custom name such as form_done. Send it only after the submission succeeds, not when the user merely opens the form.
// Fire after the lead form is successfully submitted
gtag('event', 'generate_lead', {
currency: 'USD',
value: 25.00
});For an online sale, use purchase. Include a unique transaction_id, the total value, the currency, and the purchased items. The order confirmation page should fire this event only after the payment is accepted.
Recommended events reduce ambiguity. A shared name such as purchase is easier to report on and connect to advertising systems than several site-specific names.
Custom events
Use a custom event when no recommended event expresses the interaction. For example, a software company might track a completed product demo with demo_request_submitted.
Choose names that describe what happened, use lowercase with underscores, and keep parameters consistent. Avoid creating several names for the same action, such as lead, new_lead, and form_complete.
A custom event can later be marked as a key event if it represents an important business outcome. The event category does not decide whether it is a key event. Your business definition does.
Exercise
A visitor submits a quote request successfully. Should you use an automatic event, generate_lead, or a custom event named quote_sent?
Show answer
Use generate_lead if the quote request represents a lead. Use quote_sent only when the interaction has a distinct meaning that generate_lead cannot represent.