In our last lesson, we established the fundamental building blocks of any analytics report: dimensions (the "what" and "where") and metrics (the "how many" and "how much"). You learned that every meaningful report combines these two elements to provide context.
Today, we will dig deeper to understand where dimensions and metrics actually come from. We're going to examine the raw data that Google Analytics collects: the event. By the end of this lesson, you will be able to interpret an event's name and its associated "parameters" as the fundamental pieces of data that fuel your entire analytics setup.
The Anatomy of an Action
In Google Analytics 4, every user interaction is captured as an event. A page view is an event. A click is an event. A form submission is an event. But simply knowing that an action occurred is rarely enough. If a user downloaded a file, you'd naturally want to know, "Which file was it?"
This is where the structure of a GA4 event becomes crucial. Every event consists of two parts:
- Event Name: A short, descriptive name for the action itself (e.g.,
file_download). - Parameters: A set of key-value pairs that provide additional, critical context about the action (e.g.,
file_name: 'community_guidelines.pdf').
The event name tells you what happened. The parameters tell you the details of what happened. Let's watch a video that introduces this concept and shows where you can see these raw parameters in action within GA4's diagnostic tools.
GA4 Events – A Beginner's Guide
The video is from analytics expert Benjamin Mangold (Loves Data). We'll watch the section where he introduces parameters and demonstrates how they are sent with events using the GA4 DebugView.
Please watch the segment from the introduction to parameters. Focus on how parameters like page_location and page_referrer add specific details to a generic page_view event.
As the video demonstrated, an event like page_view is automatically accompanied by parameters that carry valuable information, such as the page URL (page_location) and the page title (page_title). Without these parameters, you'd only know that a page was viewed, but not which one.
From Interpretation to Insight
Understanding this structure is the key to interpreting your analytics data. When you see an event in your reports, you can mentally deconstruct it into its name and parameters to understand the full story of the user's action.
Let's look at some common events that GA4 can collect automatically with its "Enhanced Measurement" feature. The following resource from Google contains a table that is perfect for practicing this interpretation skill.
Enhanced measurement events - Analytics Help
This Google Help article lists the events collected by the Enhanced Measurement feature. We'll focus on the table that breaks down each event, its trigger condition, and the parameters it collects.
In the table under the "Events measurement and parameters" heading, please review the various events listed. For each event, pay close attention to the Event name in the first column and the Parameters it collects in the third column. For example, look at the click event for outbound clicks. The name tells you the action (a click). The parameters—link_url, link_domain, link_text, etc.—tell you exactly what link was clicked, where it leads, and what its text was. Similarly, examine the file_download event and its parameters to see how GA4 captures details about file interactions.
By studying this table, you can see a clear pattern: the event name is the verb (what the user did), and the parameters are the nouns and adjectives that describe the context of that verb.
A More Formal Definition
Now that you have an intuitive grasp of this concept, let's look at how Google formally defines the structure of an event. This will reinforce the key ideas and introduce the terminology you'll see in technical documentation.
Custom events - Analytics Help
This Google Help page provides a concise definition of an event's structure. Although the title mentions "custom events," the anatomy it describes applies to all events in GA4.
Please read the section titled Anatomy of a custom event. Note the clear distinction it makes between the event name (used to count the action) and event parameters (which provide more information).
The key takeaway is that parameters are "key-value pairs." The "key" is the parameter's name (e.g., file_name), which stays constant. The "value" is the specific information captured during that one interaction (e.g., 'community_guidelines.pdf'), which changes with each event.
The Missing Link: From Parameter to Report
There is one final, crucial step in this process. You might assume that once you send a parameter to Google Analytics, you can immediately use it in your reports. Unfortunately, it's not that simple. Raw event parameters are stored by GA4, but they are not automatically made available for reporting.
To use the value of a parameter as a dimension or a metric in your reports, you must register it.
- If the parameter's value is text (like a URL or a file name), you register it as a custom dimension.
- If the parameter's value is a number you want to count or average (like a price or a video duration), you register it as a custom metric.
This step effectively "promotes" a piece of raw contextual data into a usable building block for your reports, connecting back to what we learned in the last lesson. The following video explains this critical process very clearly.
Event parameters in Google Analytics 4
This video from the Analytics Mania channel does an excellent job of explaining why raw parameters aren't immediately usable and demonstrates the process of registering them.
Please watch two key segments. First, watch from the part explaining why you need to register custom parameters. The presenter shows that a new parameter (page_category) is not available in reports until it's created as a "Custom Dimension" in the admin settings. Next, watch the final recap, which neatly summarizes the relationship between raw parameters, dimensions (for text), and metrics (for numbers).
This is a vital concept. An event parameter is the potential for a dimension or metric. Registration is the act of realizing that potential.
A Community Growth Example
Let's tie this all together for our fictional community platform.
Imagine we want to track when a member posts a new topic in the community forum.
- The Action: A member clicks the "Publish Topic" button.
- The Event: We would configure our website to send an event to GA4. Following best practices, we might name it
post_topic. - The Parameters: Simply counting
post_topicevents is useful, but we want more context. We could include parameters like:topic_category: 'feature_requests'word_count: 342has_attachment: 'true'
- The Interpretation: Now, when we see a
post_topicevent in our data, we know not just that a topic was posted, but also its category, length, and whether it included an attachment. - From Parameter to Report: To make this data useful, we would go to the GA4 admin area and:
- Register the
topic_categoryparameter as a custom dimension called "Topic Category". - Register the
word_countparameter as a custom metric called "Word Count". - Register the
has_attachmentparameter as a custom dimension called "Has Attachment".
- Register the
Once registered (and after GA4 processes the data, which can take up to 48 hours), we could build a report with "Topic Category" as the dimension and "Event Count" and "Average Word Count" as the metrics. This would allow us to answer questions like, "Are feature requests typically longer posts than bug reports?"—an insight that was impossible to get from the raw event name alone.
Conclusion
Today, we've dissected the fundamental unit of data in GA4. Let's summarize the key takeaways:
- Every user action is an event.
- An event is defined by its name (the action) and its parameters (the context).
- Event names tell you what happened, while parameters provide the specific details of who, what, where, and how.
- To use the information from a parameter in a standard report, you must first register it as a custom dimension (for text) or a custom metric (for numbers).
You now understand how a simple user click is transformed from a raw signal into the rich data that populates the dimensions and metrics in your reports.
In our next lesson, we will explore the different categories of events—those that GA4 collects for you automatically, those that Google recommends you use, and those you create yourself from scratch.