Sub topic 11
Using Enhanced Events in Reports: Custom Dimensions and Key Events
This chapter assumes you have a web data stream with enhanced measurement switched on, and that the Google tag is installed through gtag.js or Google Tag Manager. It also assumes you know that a GA4 event has a name and a set of parameters. You should be able to open Admin and find the property settings. By the end you will know why enhanced events often look thin in reports, how to register their parameters as custom dimensions, and how to turn the right ones into key events.
Why enhanced events need extra work
Enhanced measurement sends events to GA4 as soon as you enable it. Each event carries parameters, such as file_name on file_download or link_url on click. GA4 stores every parameter it receives, but it does not make every parameter available in reports. You see the event name and its count right away. For the parameters, you may have to ask for them.
The table below lists the parameters you will most often want to report on.
| Event | Useful parameters |
|---|---|
| `scroll` | `percent_scrolled` |
| `click` (outbound) | `link_url`, `link_domain`, `link_id`, `link_classes`, `outbound` |
| `view_search_results` | `search_term` |
| `file_download` | `file_name`, `file_extension`, `link_text`, `link_url` |
| `video_start`, `video_progress`, `video_complete` | `video_title`, `video_provider`, `video_url`, `video_percent`, `video_current_time`, `video_duration` |
| `form_start`, `form_submit` | `form_id`, `form_name`, `form_destination`, `first_field_id`, `first_field_name`, `form_submit_text` (on `form_submit` only) |
Some of these already exist as built-in dimensions, and others do not. Google changes this list over time, so check the dimension picker in Explorations before you register anything. A parameter that appears in the picker needs no registration.
What reaches reports and what does not
Three layers matter here.
- Collection. GA4 receives the event and all its parameters.
- Reporting. Standard reports, Explorations, and the Data API can break down by a parameter only if it is a built-in dimension or a registered custom dimension.
- Export. The BigQuery export contains every parameter, registered or not.
Registering a custom dimension
A custom dimension maps one event parameter to a named column that reports can use.
- Open Admin, then Data display, then Custom definitions.
- Select Create custom dimension.
- Enter a Dimension name. This is the label you will see in reports, such as "Form ID".
- Set Scope to Event.
- Enter the Event parameter exactly as it is sent, such as
form_id. The match is case-sensitive. - Save.
Keep these rules in mind.
- Registration is not retroactive. The dimension fills only with events collected after you create it. Events collected earlier will not show the value, even though GA4 received the parameter.
- New dimensions can take up to a day to appear. Registered dimensions usually show up in Explorations before they show up in standard reports.
- There is a quota. A standard property allows 50 event-scoped custom dimensions. A GA4 360 property allows more. Do not spend the quota on parameters you will never filter by.
- Names must match. If your custom event sends
linkTextand you registeredlink_text, the column stays empty. - Scope matters. Use event scope for enhanced measurement parameters. User scope is for properties that describe the person, not the interaction.
Which parameters are worth registering
Register a parameter when you will compare values across many events. Skip it when the value is unique or almost unique per event.
form_idorform_name: register it if you have more than one form.link_textonfile_download: register it if you want to tell apart several links to the same file.video_title: usually already available, but confirm in the picker.link_urlon outbound clicks: it may already exist, but long URLs with query strings create very many distinct values. Preferlink_domainfor summaries.percent_scrolled: only ever 90 for the built-in event, so it adds nothing. It matters if you send your ownscroll_depthevent with 25, 50 and 75.
High-cardinality dimensions can produce an (other) row in standard reports when a report has too many distinct values. If you see (other), switch to an Exploration or narrow the date range.
Registering parameters from your own events
Registration works the same way for custom events. The cta_click example from the tracking code below sends link_text and link_url:
document.querySelectorAll('a[data-track="pricing-cta"]').forEach((link) => {
link.addEventListener('click', () => {
gtag('event', 'cta_click', {
link_text: link.textContent.trim(),
link_url: link.href
});
});
});If link_text is already registered for file_download, the same custom dimension also serves cta_click. A custom dimension belongs to a parameter name, not to an event. So reuse names where the meaning is the same, and avoid reusing a name for something different.
Reporting without registering: BigQuery
If you export GA4 data to BigQuery, you can read any parameter without registering it. The query below counts file downloads by file name. It uses file_name, which file_download sends.
SELECT
(SELECT value.string_value
FROM UNNEST(event_params)
WHERE key = 'file_name') AS file_name,
COUNT(*) AS downloads
FROM `my-project.analytics_123456789.events_*`
WHERE event_name = 'file_download'
AND _TABLE_SUFFIX BETWEEN '20261101' AND '20261130'
GROUP BY file_name
ORDER BY downloads DESC;Replace the project and dataset names with your own. Data in the export is available from the day the link is created, and it is not backfilled either.
Building a report with a custom dimension
The fastest way to check a new dimension is an Exploration.
- Open Explore and start a Blank exploration with a Free form technique.
- Under Dimensions, import Event name and your new dimension, for example Form ID.
- Under Metrics, import Event count.
- Drag Event name and Form ID to Rows, and Event count to Values.
- Add a filter: Event name exactly matches
form_submit.
You now see how many submissions each form received. For video, filter on video_complete and break down by Video title to see which videos viewers finish.
Key events
A key event is an event you mark as especially important to the business. Google renamed what GA4 used to call conversions to key events, and the setting is now named Mark as key event. Key events feed the Key events column in reports, the Google Ads import, and attribution reports.
To mark one:
- Open Admin, then Data display, then Events.
- Find the event in the list. An event appears only after GA4 has received it at least once.
- Turn on Mark as key event.
You can also use New key event on the Key events page to enter an event name before it has been collected.
Which enhanced events make good key events
| Event | Fit as a key event |
|---|---|
| `form_submit` | Often good, but verify it first. It fires on any form submit, including search boxes and newsletter widgets. |
| `file_download` | Good for a gated whitepaper or a price list, but only for specific files. |
| `click` (outbound) | Good if the outbound link is a booking or payment page you do not control. |
| `view_search_results` | Rarely. It measures activity, not a result. |
| `scroll` | Rarely. A 90% scroll is a weak signal, and the event is not a business outcome. |
| `video_complete` | Sometimes, for a page where the video is the goal. |
Marking a key event applies to every instance of that event name. If every file_download becomes a key event, then downloading a harmless PDF counts as much as the price list. That is usually not what you want.
Narrowing a key event with Create event
You can build a more specific event from an enhanced one, then mark that event instead.
- Open Admin, then Data display, then Events, and select Create event.
- Name the new event, for example
pricing_pdf_download. - Add matching conditions:
event_nameequalsfile_downloadandfile_namecontainspricing. - Leave Copy parameters from the source event on, so the new event keeps its parameters.
- Save, then mark
pricing_pdf_downloadas a key event once it appears in the events list.
Two behaviors surprise people.
- The original event keeps firing. You now count the download twice, once as
file_downloadand once aspricing_pdf_download. This is intended, but do not add the two counts together. - It applies only to new data. Past downloads do not become
pricing_pdf_download.
A created event runs inside GA4 after collection. It cannot match a parameter that was never collected, so a rule on file_name only works if enhanced measurement sends file_name for those links.
Counting method
A key event can be counted once for every occurrence, or once per session. For form_submit, once per event can inflate numbers if a user submits twice after a validation error. If you care about people reaching the goal, not every attempt, check the counting method setting for that key event.
Common reporting mistakes
- Expecting history. Registering a dimension or marking a key event changes only later data.
- Typos in the parameter name. The dimension stays empty and gives no error.
- Treating
form_submitas a purchase. It fires when a submit event happens in the browser, not when the server accepts the form. If the form re-renders with an error, the event has still fired. - Duplicates from both enhanced measurement and your own tags. If a Tag Manager tag also sends
file_download, key event counts double. Validate in DebugView before you mark anything. - Using
link_urlfor summaries. Query strings and tracking parameters split one page into many rows. Uselink_domainor a cleaned custom parameter.
Exercise
Your site has three forms. Enhanced measurement already sends form_submit with form_id, but your Exploration shows only total submissions. The pricing request form should count as a key event, and the newsletter form should not. Describe the steps you would take, and say what your numbers will look like for last month.
Show answer
Register an event-scoped custom dimension with the event parameter form_id (first check the dimension picker in case a built-in dimension already exists). Then add Form ID as a row in an Exploration filtered to form_submit. For the key event, use Admin, Data display, Events, Create event. Name it for example pricing_form_submit, and match event_name equals form_submit and form_id equals the pricing form's ID, with parameters copied. After it appears in the events list, mark it as a key event. Leave form_submit itself unmarked. Last month's numbers: the custom dimension and the new event only fill with data collected after you created them, so last month's rows show no Form ID and pricing_form_submit has no count. The original form_submit count stays correct, and BigQuery export data, if you have it, still contains form_id for earlier months.
Exercise
A colleague marks file_download as a key event. A week later, the key event count is ten times higher than leads in your CRM. Give two likely causes and one way to confirm each.
Show answer
First, file_download fires for every recognized file type, including manuals and images of documents that are not lead-generating, so the key event counts all of them. Confirm by breaking file_download down by File name or Link URL in an Exploration. Second, a Tag Manager tag may send file_download in addition to enhanced measurement, so each click counts twice. Confirm by opening DebugView or Tag Assistant preview, clicking one download link, and seeing whether two file_download events arrive. A fix for the first cause is a Create event rule that matches only the lead-generating file, with that new event marked as the key event.