Sub topic 11
Marking events as key events
This chapter assumes you have read the Events report chapters. You should know that every GA4 hit is an event with parameters, and you should be able to find a row in the Events report. Here you will learn what makes an event a key event, how to mark one, how GA4 counts it, and how to read the result.
What a key event is
A key event is an event you have flagged as especially important to your business. Examples are purchase, generate_lead, or a newsletter signup. Google used to call these "conversions". In 2024 it renamed them to key events in GA4 to separate them from Google Ads conversions. The two names point to the same idea in a GA4 property, and you will still see "conversion" in older documentation, in Google Ads, and in some API fields.
Marking an event does not change how it is collected. The event still arrives and still appears in the Events report. The flag only tells GA4 to do three extra things:
- Count the event in the
keyEventsmetric. - Show it in the key event reports and in the key event columns of acquisition reports.
- Make it available to export to linked products such as Google Ads.
Because the flag is metadata, a key event is still an ordinary event. Everything from earlier chapters applies to it, including the event name, its parameters, and the way it is counted in the Events report.
Marking an event
There are three routes. All of them need the Editor role or higher on the property.
- From the Events report. Go to Reports, then Engagement, then Events. Each row has a star in the "Mark as key event" column. Select the star for the event you want.
- From the Admin area. Open Admin, then Data display, then Key events. Choose New key event and type the exact event name. This route works even if the event has not been received yet.
- From the Events list in Admin. Switch on the "Mark as key event" toggle next to an event that has already arrived.
The first and third routes only offer events that GA4 has already received, so a brand-new event can take up to a day to appear. The second route is the only way to flag an event before any data has arrived.
Creating the event first
Many goals have no dedicated event. A visit to a thank-you page is a common case. You can create a new event from an existing one in Admin, under Data display, then Events, then Create event. The following settings turn a visit to /thank-you into a signup_complete event:
- Custom event name:
signup_complete - Matching condition 1:
event_nameequalspage_view - Matching condition 2:
page_locationcontains/thank-you - Copy parameters from the source event: enabled
Then mark signup_complete as a key event. Event names are case-sensitive, so Signup_Complete and signup_complete are two separate events.
If you control the site code, sending the event directly is more reliable than inferring it from a URL. The URL can change, and a page reload can fire the event again.
// Send a custom event with a parameter from a page that already loads gtag.js
gtag('event', 'newsletter_signup', {
placement: 'footer'
});After this event appears in the Events report, mark newsletter_signup as a key event. The placement parameter becomes reportable once you register it as a custom dimension, which the next chapter covers.
How key events are counted
The Events report shows eventCount, which is every occurrence of an event. The keyEvents metric is related but not identical. It counts occurrences of events that were marked as key events at the time they were collected.
GA4 has a counting method setting for each key event. It has two values:
| Counting method | Behavior | Typical use |
|---|---|---|
| Once per event | Every occurrence counts | Purchases, where each order matters |
| Once per session | At most one count per session, however often the event fires | Lead forms, where repeat submissions inflate the count |
Once per event is the default for most events. Change the method in Admin, under Data display, then Key events, by opening the event's row menu. The method applies from the time you change it. It does not rewrite history.
Suppose a visitor submits a contact form three times in one session. The same three submissions produce different counts:
| Measure | Value |
|---|---|
| `eventCount` for `generate_lead` | 3 |
| `keyEvents` with once per event | 3 |
| `keyEvents` with once per session | 1 |
The once-per-session method is the one that makes keyEvents and the session count line up, so ratios such as the session key event rate are easier to interpret.
Key event rates
Raw counts are hard to compare across channels or pages with different traffic. GA4 therefore provides rates:
- Session key event rate is the share of sessions in which at least one key event occurred.
- User key event rate is the share of users who triggered at least one key event.
The rate formulas and the engagement formulas are similar in form. Engagement rate is engaged sessions divided by sessions. Session key event rate is sessions with a key event divided by sessions. Both are session-scoped ratios.
This makes a useful cross-check. Say a landing page has a high engagement rate but a low key event rate. Visitors are interacting with the page but not completing the goal. A low engagement rate with a high key event rate usually points to a very short path, such as a one-field form on a page people only visit in order to submit it.
Limits and non-retroactivity
Marking a key event is not retroactive. Events collected before you flagged them stay counted as ordinary events. If you mark newsletter_signup today, last month's signups will not appear in key event reports. Unmarking works the same way. Past data keeps its key event status, and new occurrences are no longer counted.
There is also a limit on how many custom key events a property can have. A standard property allows around 30 beyond the defaults, and a GA4 360 property allows more. Google changes limits from time to time, so check the current documentation before you plan around a specific number. In practice, mark only the few events that represent real business outcomes. A property where scroll, click, and page_view are all key events has a keyEvents metric that says nothing useful.
Data in the key event columns can lag by a day or more, especially for newly marked events. When a new key event shows zero, check the Realtime report first. It confirms the event is firing at all, regardless of the flag.
Pulling key events with the Data API
You can retrieve key event figures with the same runReport method used for pages and events. This request returns the key event count and the event count for each event name over the last 28 days. It sorts by key events and keeps the top 10.
{
"dateRanges": [{ "startDate": "28daysAgo", "endDate": "yesterday" }],
"dimensions": [{ "name": "eventName" }],
"metrics": [
{ "name": "keyEvents" },
{ "name": "eventCount" },
{ "name": "totalUsers" }
],
"orderBys": [{ "metric": { "metricName": "keyEvents" }, "desc": true }],
"limit": 10
}Rows where keyEvents is 0 are events that were never marked, or that were collected before you marked them. Compare keyEvents to eventCount for the same event. A gap means one of three things:
- The counting method is once per session.
- You marked the event partway through the date range.
- The event is not currently flagged.
Older code may use the metric name conversions. That name is deprecated in favor of keyEvents, so update any dashboards or scripts that still rely on it.
Key events and Google Ads
A key event in GA4 is not automatically a Google Ads conversion. If you link the two products, you import selected key events into Google Ads, where they appear under the Ads terminology of "conversions". Ads then uses them for reporting and bidding. Two consequences follow:
- Changing the GA4 flag changes what is available to import. It does not edit conversion actions that already exist in Google Ads.
- Counts can differ between the two products because of attribution models, conversion windows, and reporting delays.
Common mistakes
- Typing the name wrong. A key event set up under
signup_completewill never match events sent assignup-complete. - Expecting history. Flagging is not retroactive, so create the key event before a campaign starts.
- Counting repeats as success. Choose once per session for goals a visitor can repeat easily.
- Flagging too much. A dozen key events dilute the signal that a single well-chosen one gives.
- Comparing counts to rates. A channel with more
keyEventsmay have a lower session key event rate if it also brings far more sessions.
Exercise
A visitor submits your generate_lead form twice in one session. The event is marked as a key event with the "once per session" counting method. What are eventCount and keyEvents for that visitor's session?
Show answer
eventCount is 2, because every occurrence of the event is counted. keyEvents is 1, because the once-per-session method counts at most one occurrence per session.
Exercise
You marked newsletter_signup as a key event on 15 November. On 28 November, a report for the whole month shows eventCount of 400 but keyEvents of 150 for that event. Give the most likely explanation and the check that confirms it.
Show answer
Marking is not retroactive, so signups collected before 15 November count only as ordinary events. To confirm, run the report with a date range that starts on or after 15 November. In that range keyEvents should be close to eventCount. If a gap remains, check whether the counting method is once per session.