Sub topic 2
Events and parameters: the raw material of funnel steps
This chapter assumes you can navigate GA4 reports and know that GA4 records behavior as events. You do not need to have built a funnel yet. By the end you will know which parts of an event a funnel step can use, and which common mistakes make steps match the wrong users.
Why steps start with events
A funnel exploration does not read pages or sessions. It reads events. Each funnel step is a condition that GA4 tests against the events a user generated. If no event matches a step, nobody can enter that step, and every later step in a closed funnel is empty too.
So before you open the Funnel exploration, ask two questions about each stage of the journey:
- Is there an event that fires when a user reaches this stage?
- If several stages share one event name, is there a parameter that tells them apart?
If the answer to both is no, the stage cannot be measured as a step until you change the tracking.
Anatomy of a GA4 event
Every GA4 event has the same shape:
- An event name is a text label such as
view_itemorpurchase. It says what happened. - Event parameters are extra key-value pairs sent with one event. They say more about that occurrence, such as
currency,valueorpage_location. - User properties are attributes of the user, such as a plan type, that apply to every event that user sends.
- Items are an array of products attached to ecommerce events. They hold item-scoped fields such as
item_idandprice.
Funnel steps use the first two directly. Parameters on an event are tested together with its name, which lets you write a step like "event is page_view and page_location contains /checkout."
Three kinds of events
GA4 sorts events by who defines them. The distinction matters because it decides how reliable the name is.
| Kind | Who defines it | Examples | Funnel use |
|---|---|---|---|
| Automatically collected | GA4 collects them once the tag is installed | `page_view`, `session_start`, `first_visit` | Good for top-of-funnel steps |
| Enhanced measurement | GA4 collects them if the setting is on | `scroll`, `click` (outbound), `file_download`, `form_start`, `form_submit` | Useful, but behavior depends on the setting and the site's markup |
| Recommended | Google defines the name and parameters; you send them | `view_item`, `add_to_cart`, `begin_checkout`, `purchase` | Best for ecommerce funnels |
| Custom | You define everything | `quiz_completed`, `trial_started` | Needed when no standard event fits |
Prefer a recommended event when one fits. Google's standard names and parameters keep your data consistent with GA4's built-in ecommerce reports, and other analysts can read them without documentation.
Parameters: what you can filter on
A parameter attached to an event can narrow a step. A common case is a step based on one shared event, page_view, narrowed by page_location or page_title.
There are a few rules to keep in mind:
- A parameter appears as a funnel dimension only if it is available in the property's dimension list. Many built-in parameters, such as
page_location, are already listed. - Your own custom parameters are not listed until you register them as custom dimensions in Admin. Without registration they are stored in the raw data but cannot be used in explorations.
- Registration is not retroactive. A custom dimension collects values from the moment you create it, so earlier events stay without it.
- Parameter values are case-sensitive text.
Checkoutandcheckoutare different values.
Event-scoped and item-scoped data
Parameters such as currency and value belong to the event. Fields inside items, such as item_id, belong to each product in the array. An event can contain several items, so an item-level condition is true if any item in the array matches.
That has a consequence for funnels. If a user views a tote bag and later adds a different product to the cart, an item-level condition on item_id = SKU_123 matches view_item for the first product and add_to_cart for the second. GA4 counts the user in both steps, but the two events are about different products. Use the same item condition on every step when you want to follow one product.
An example step definition
Suppose a store sends the recommended events shown in the spine's gtag examples. Here is how the first stage of the journey looks as a step condition:
gtag('event', 'view_item', {
currency: 'USD',
value: 29.99,
items: [{ item_id: 'SKU_123', item_name: 'Canvas Tote', price: 29.99 }]
});In the Funnel exploration, step 1 would be:
- Condition: event name equals
view_item. - Optional narrowing: an item or parameter condition, for example
item_idequalsSKU_123.
Note that the call above sends value equal to the price. For add_to_cart and begin_checkout, value should equal price multiplied by quantity, so keep the arithmetic consistent across events.
Common errors at the event layer
The following problems produce numbers that look like funnel bugs but start in the data:
- Name drift. One page sends
add_to_cartand another sendsaddToCart. GA4 treats them as two events, so a step on one name misses the other. - Wrong parameter name. Sending
item_idasitemIdplaces the value in a field GA4 does not map to an ecommerce dimension. - Events firing twice. A tag that loads twice doubles an event. A funnel counts users, so the step count is less affected than event counts, but the doubled events can still distort time and next action results.
- Missing parameters. If
transaction_idis absent from somepurchaseevents, GA4 cannot deduplicate them, and revenue totals may include repeats. - Event not sent at all. A stage that happens in a payment provider's page or an app screen that has no tagging cannot become a step.
You can check which events a property receives in the Events report and in DebugView before you build anything. A few minutes there prevents a long investigation later.
Choosing between name and parameter
When two stages look alike, decide how to separate them.
| Situation | Better choice | Reason |
|---|---|---|
| Stages happen on different pages | `page_view` plus a `page_location` condition | Needs no new tagging |
| Stages are different actions | Separate event names | Easier to read in reports |
| Many similar actions, such as form types | One event plus a parameter | Avoids many event names, which are limited per property |
| Need to follow one product | Item condition on every step | Keeps steps about the same product |
GA4 limits how many distinct event names and custom dimensions a property can hold, so a parameter is often a better way to separate variants than a new event name for each one.
Exercise
A funnel's step 2 uses a custom parameter, plan_type, that you added to the signup_started event last week. You register plan_type as a custom dimension today and filter step 2 to plan_type = pro for the last 28 days. Why is the step count lower than you expected, and what would you check first?
Show answer
A custom dimension is not backfilled. Only events collected after registration carry the value, so most of the 28 days have no plan_type in the dimension and those events fail the condition. Check the registration date, then restrict the date range to start after it. Also verify the value's exact spelling and case, because parameter values are case-sensitive.
Exercise
A store's view_item event always sends items with item_id and your step 3 condition is item_id = SKU_123 on begin_checkout. A user begins checkout with a cart holding SKU123 and SKU456. Does this user match step 3?
Show answer
Yes. An item-level condition matches if any item in the array satisfies it, so the cart containing SKU_123 matches even though it also holds another product.