Sub topic 2
Automatic, Recommended, and Custom Events
This chapter assumes you have a GA4 property with a web data stream, and that you know the basics of Reports and Admin. It also assumes you know that GA4 records every interaction as an event with parameters. Here you learn the four event types, how to choose between them, and which ones fit a lead and a sale.
Why event types matter
Every hit that GA4 stores is an event. The differences between types are about who sends the event, who defines its name and parameters, and how well the rest of GA4 understands it.
Event type affects three things you care about when you mark key events:
- Reliability of the name. A name Google defines has a known meaning in reports and in Google Ads.
- Effort. Some events need no code. Others need a developer or Google Tag Manager.
- Reporting support. Reserved and recommended names unlock built-in reports and fields. Custom names do not.
The four event types
GA4 groups events into four categories.
| Type | Who defines it | Who sends it | Example names |
|---|---|---|---|
| Automatically collected | The GA4 tag, with no setup | `first_visit`, `session_start`, `page_view` (web) | |
| Enhanced measurement | The GA4 tag, if the setting is on | `scroll`, `click` (outbound), `file_download`, `video_start`, `form_start`, `form_submit` | |
| Recommended | Google defines name and parameters | You | `generate_lead`, `purchase`, `sign_up`, `login` |
| Custom | You | You | `quote_requested`, `brochure_download` |
Automatically collected events
These fire as soon as the GA4 tag loads. You cannot turn most of them off, and you do not configure them. page_view is the most common. session_start and first_visit support session and new-user counts.
Treat them as the foundation of your data. They rarely represent a business outcome by themselves, so they are seldom good key events.
Enhanced measurement events
Enhanced measurement is a set of toggles in the web data stream settings (Admin, Data streams, your web stream, Enhanced measurement). Each toggle turns on one or more events without code changes.
Two of these matter for lead tracking:
form_startfires when a visitor first interacts with a form in a session.form_submitfires when GA4 detects a form submission.
Be careful with form_submit. GA4 detects submissions by watching the page for form events. It can fire when a form fails validation, when a form submits through JavaScript without a standard submit, or not at all. It also fires for forms that are not leads, such as a site search or a newsletter box. Test it before you trust it, and see the later chapters on verification.
Recommended events
Recommended events are names and parameter lists that Google publishes for common business actions. GA4 does not send them for you. You send them with gtag.js or Google Tag Manager, using the documented names and parameters.
Two recommended events cover this tutorial's goals:
generate_leadrepresents a visitor who has submitted contact information. Its main parameters arevalueandcurrency.purchaserepresents a completed sale. Its main parameters aretransaction_id,value,currency, anditems.
Using the documented name has real benefits. Google can map purchase to the ecommerce reports, and the parameters you send appear in the right report fields. Other Google products recognize the same names.
If you misspell a recommended name, GA4 treats it as a custom event. It will not raise an error. It simply loses the special handling.
Custom events
A custom event is any event whose name you choose that is not in the other three lists. Use one when no recommended event describes the action. Examples are quote_requested, demo_booked, or pricing_calculator_used.
Custom events carry two costs:
- Their parameters do not show in standard reports until you register them as custom dimensions or metrics (Admin, Custom definitions).
- Their meaning is only known to your team, so you must document it.
Naming rules for custom events:
- Use letters, numbers, and underscores. Start with a letter.
- Names are case-sensitive.
Quote_Requestedandquote_requestedare two different events. - Avoid reserved prefixes such as
google_,ga_, andfirebase_. - Keep names stable. Renaming an event starts a new event in your data.
Choosing between recommended and custom
Use this order of preference.
- Use an automatic or enhanced measurement event only if it already matches the outcome exactly and you have tested it.
- If Google has a recommended event for the action, use it with its documented parameters.
- Otherwise, create a custom event with a clear, stable name.
The decision flow looks like this.
Applying this to a lead and a sale
For a sale, purchase is almost always the right choice. It is the recommended event with the richest parameter set, and it supports duplicate prevention through transaction_id.
For a lead, generate_lead is the default recommended choice. Use a custom event instead when your business has several kinds of lead and you must tell them apart. In that case, you can still send generate_lead for all of them and add a custom parameter such as lead_type. Compare the options:
| Approach | Strength | Weakness |
|---|---|---|
| One `generate_lead` event plus a `lead_type` parameter | Single key event, easy totals, recognized name | You must register `lead_type` as a custom dimension to report on it |
| Separate custom events per lead kind | Each kind can be its own key event | More events to maintain, no recommended-event handling |
Pick the first approach unless different lead kinds need different values or different Google Ads bidding goals.
Sending recommended and custom events
Events are sent the same way regardless of type. Only the name and parameters differ. This gtag.js call sends a recommended lead event:
// Fire after a lead form is successfully submitted
gtag('event', 'generate_lead', {
currency: 'USD',
value: 25.00
});A custom event uses the same call with your own name and parameters:
// Fire when a visitor requests a quote
gtag('event', 'quote_requested', {
lead_type: 'commercial',
value: 120.00,
currency: 'USD'
});The first call uses a name Google recognizes. The second uses a name only your property understands. The lead_type parameter will not appear in reports until you register it as an event-scoped custom dimension.
Limits and edge cases
- Event name length. Names can be up to 40 characters.
- Parameters per event. An event can carry up to 25 parameters. Parameter names are limited to 40 characters and values to 100 characters for standard properties.
- Distinct custom events. A standard property supports up to 500 distinct event names. Names you no longer use still count toward the cap, so plan names before sending.
- Custom dimensions. Registering a parameter creates a dimension. Standard properties have a limited quota of event-scoped dimensions, so register only parameters you will report on.
- Mixed naming. If one page sends
generate_leadand another sendsGenerate_Lead, you get two events. Only the first has recommended handling. - Duplicate sources. If enhanced measurement
form_submitand your owngenerate_leadboth fire for one form, you have two events for one lead. Mark only the one you trust.
Check Google's current documentation for exact limits, since they change.
Common mistakes with event types
- Marking
page_vieworscrollas a key event. These happen on almost every visit and flood your key event counts. - Using a custom name such as
purchase_completewhenpurchaseexists, which loses ecommerce reporting. - Sending personal data such as an email address in an event parameter. This violates Google's terms and many privacy laws.
- Assuming a recommended event exists in GA4 just because you sent it. It exists only after the property receives it at least once.
Summary
Automatic and enhanced measurement events come for free but rarely match a business outcome. Recommended events give you Google-defined names and parameters, and you should prefer them. Custom events fill the gaps, but you must document them and register their parameters before you can report on them. For this tutorial, plan on generate_lead (or a custom lead event) and purchase.
Exercise
A site has a quote request form. Enhanced measurement is on, and a custom event named Quote_Requested fires on successful submission. Your colleague also sends quote_requested from another page. List two problems with this setup and propose a fix.
Show answer
First, event names are case-sensitive, so Quote_Requested and quote_requested are two separate events, and counts will be split. Second, form_submit from enhanced measurement may also fire for the same form, so one lead could be counted by two events. The fix is to choose one stable name, preferably the recommended generate_lead with a lead_type parameter of quote, send it only on successful submission, and mark only that event as a key event. Test that form_submit is not also marked.
Exercise
You send gtag('event', 'purchas', { transaction_id: 'T_1', value: 40, currency: 'USD' });. What does GA4 do with this event, and why does it matter?
Show answer
GA4 accepts it without error and records it as a custom event named purchas. It does not get the special handling for the recommended purchase event, so ecommerce reports will not include this sale. The fix is to correct the spelling to purchase.