Sub topic 10
Marking the events as key events
This chapter assumes you have a GA4 property with a web data stream and Editor access to it. It also assumes your site already sends generate_lead and purchase events, as designed in the earlier chapters. Sending an event does not make it a key event. Marking it is a separate step in the property's configuration, and this chapter covers that step.
What marking does
A key event is an ordinary event that you have flagged as important to the business. The flag is a property setting. It doesn't change the data your site sends. The event arrives in GA4 exactly as before, and GA4 now also counts it in the key event metrics.
Marking has four effects:
- The event is counted in the
Key eventsmetric and in per-event key event columns in reports. - The event can be used as a goal in Explorations and in report comparisons.
- The event can be imported into Google Ads as a conversion action.
- The event is eligible to be used in audience conditions and predictive metrics.
Three behaviors cause most of the confusion:
- Marking is not retroactive. GA4 counts the event as a key event only from the moment you mark it. Earlier occurrences stay ordinary events.
- Unmarking is not destructive. Turning the flag off stops future counting. Data collected while the flag was on stays in your reports.
- The flag is per property. A key event in one property says nothing about another property, even if both receive the same event name.
Where to mark an event
Both routes below are in Admin, under the property column, in the Data display section. Older interface versions label that section differently, so look for Events and Key events entries if the layout differs.
Route 1: the Events list
Use this route when the event has already reached GA4.
- Open
Admin, thenData display, thenEvents. - Find the event name in the table, such as
generate_leadorpurchase. - In the
Mark as key eventcolumn, switch the star or toggle on.
The list shows only events GA4 has already received. A brand-new event can take up to about a day to appear. If you just deployed the tag and the name is missing, use Route 2 instead of waiting.
Route 2: the Key events page
Use this route when you want to mark the event before any data arrives.
- Open
Admin, thenData display, thenKey events. - Select
New key event. - Type the exact event name, for example
generate_lead, and save.
Route 2 is the more reliable choice for a launch. The flag is already in place when the first real lead arrives, so no early events are missed.
| Situation | Better route | Reason |
|---|---|---|
| Event has been firing for days | Events list | The name is already in the table |
| Event ships next week | Key events page | The flag exists before the first event |
| You are unsure of the exact name | Events list | Avoids a typo creating a dead entry |
| You want to see all current flags | Key events page | One list of everything marked |
The name must match exactly
Event names in GA4 are case-sensitive. Generate_Lead and generate_lead are two different events. If you type a name on the Key events page that differs from what your tag sends, GA4 accepts it and then counts nothing. The key event will show zero results while the real event goes unflagged.
Copy the name from the code that sends it, or from the Events list after the first real hit.
// The string below is the name you must mark as a key event.
// Spelling, case, and underscores must match exactly.
gtag('event', 'generate_lead', {
currency: 'USD',
value: 25.00
});A reasonable workflow
The sequence below keeps the flag from being set on a broken event.
Check the event in DebugView first, which a later chapter covers in detail. Flagging first and testing afterward means test traffic and malformed hits go into your key event totals from the start.
Set the counting method right away
After you mark an event, the key event row has a counting method setting. It decides how many times one session can produce a key event count. A later chapter covers the choice in depth. For now, know the two options and the starting rule.
- Once per event counts every occurrence. Two
purchaseevents in one session count as two. - Once per session counts the event at most one time in a session, even if it fires repeatedly.
Use these starting points:
- Keep
purchaseat once per event. Each order is a separate sale with its own value, and collapsing orders would hide revenue-relevant activity. - For
generate_lead, once per session is a common choice when a visitor might submit the same form repeatedly in one visit. Use once per event if every submission is a distinct lead you want counted, such as a quote request for different products.
Check the setting for each event after marking it. Don't assume the default suits your business, because defaults can differ by event and by when the property was created.
Marking more than one event
A typical lead-and-sale setup marks two events: generate_lead and purchase. Resist marking everything. Each flagged event increases the Key events total, and a total that mixes unlike things stops answering a clear question.
A standard property allows up to 30 key events. GA4 360 properties allow more. Treat the limit as a ceiling, not a target.
Good candidates for flags:
- The final successful outcome, such as a confirmed form submission or order.
- A distinct outcome you will report on separately, such as
generate_leadandpurchaseon a site that has both.
Poor candidates:
- Steps that lead toward an outcome, such as
view_item,add_to_cart, orbegin_checkout. Analyze these as funnel steps instead. - Broad engagement events such as
scrollorpage_view. They fire so often that the key event total becomes noise. - Both a button click and the resulting confirmation. Flag only the confirmation, or the same lead is counted twice.
If your site has several lead types, for example a contact form and a newsletter signup, decide whether they are equally valuable. A newsletter signup counted next to a sales inquiry makes the lead total hard to interpret. Either give them different event names and flag only the valuable one, or flag both and separate them in reports with a parameter such as form_id.
The same event from two sources
Some sites end up with two tags sending the same event name. One might be a direct gtag call in the page and the other a GTM event tag. Both fire, GA4 receives two events per action, and the key event is counted twice. Marking does not deduplicate anything.
For purchase, transaction_id prevents duplicate sales in the reporting data. For leads there is no such protection, so keep exactly one sender per event. The GTM version of the purchase push looks like this, and its tag should be the only sender of purchase:
window.dataLayer = window.dataLayer || [];
dataLayer.push({ ecommerce: null }); // clear the previous ecommerce object
dataLayer.push({
event: 'purchase',
ecommerce: {
transaction_id: 'T_12345',
value: 59.98,
currency: 'USD',
items: [
{ item_id: 'SKU_123', item_name: 'Trail Shoes', price: 59.98, quantity: 1 }
]
}
});Common errors when marking
- The event is missing from the list. GA4 has not received it yet, or it is under another name. Wait for processing, or use
New key eventon the Key events page. - Key event shows zero. The name probably does not match the sent event, or the event fires only on a test environment that sends to another property.
- Yesterday's data is not flagged. Marking is not retroactive. Report from the marking date forward, and record that date in your notes.
- The count looks doubled. Look for two senders of one event, or a thank-you page that reloads and re-fires. Check the page's tag configuration before changing the counting method.
- No Editor access. Viewers and Analysts can see the list but cannot change the flag. Ask a property administrator to grant Editor.
- A deleted flag comes back. Someone else on the team re-marked the event. Agree on one owner for key event changes and log each change.
Document each change
Keep a short record: event name, date marked, counting method, who marked it, and the reason. Because marking is not retroactive, the date is the only way to explain a jump in key event totals six months later.
Exercise
Your site starts sending generate_lead next Monday. You want every lead counted as a key event from the first hit. Which route do you use, and why?
Show answer
Use the New key event button on the Key events page in Admin and type generate_lead exactly. The event does not exist in the Events list until GA4 receives it, and marking is not retroactive, so creating the flag in advance ensures the first lead is counted.
Exercise
You marked generate_lead as a key event last week. A colleague asks why last month's leads do not appear in the Key events metric. What do you tell them, and what do you check next?
Show answer
Marking is not retroactive, so GA4 counts the event as a key event only from the marking date. Earlier leads remain ordinary generate_lead events, which you can still see in event reports. Next, confirm the marking date in your change log and compare the key event count against the raw event count since that date. If they differ, check the counting method and the exact event name.