Metrics and Dimensions in Google Analytics
- Average speed
- km/h
- Result
- Finish time
- 50 min
- You entered
- Distance
- 10 km
- You entered
Metrics and dimensions are the two core data types in Google Analytics: metrics are the numbers you measure (like sessions, users, and conversion rate), while dimensions are the attributes you segment by (like source, device, and page). Every report in Google Analytics is essentially a table built from one or more dimensions (the rows) and one or more metrics (the columns). Understanding how these two work together is the foundation for reading any GA report correctly.
Formula
The relationship between metrics and dimensions is not a mathematical formula like a conversion; it’s a data model. In Google Analytics, a dimension is a descriptive attribute or characteristic of data, and a metric is a quantitative measurement. The formula that ties them together is simply: metric = aggregate function (dimension values). For example, if your dimension is “Source� (e.g., google, direct) and your metric is “Sessions,� then the report counts the number of sessions for each source. The underlying aggregation is usually a sum, count, average, or ratio applied to the raw hit data.
Worked Example
Let’s use a concrete example: you want to see which pages on your site get the most views. In Google Analytics 4 (GA4), you would set the dimension to Page path and the metric to Views. Suppose your data shows three pages: /home, /pricing, and /contact. The report would display:
- /home: 1,200 views
- /pricing: 850 views
- /contact: 320 views
Here, each row is a dimension value, and the column is the metric. The “formula� is just the count of views per page. In GA4, you can also add a second metric like Engaged sessions to see how many sessions on each page met the engagement threshold. The aggregation is done automatically by the reporting interface.
How Metrics and Dimensions Work Together
In Google Analytics, every hit (pageview, event, transaction) carries both dimensions and metrics. Dimensions are like labels—they tell you who, what, where, or when. Metrics are the numbers that quantify those labels—how many, how often, or how much. When you build a report, you choose one or more dimensions to break down your data, and one or more metrics to measure. The key rule: you can’t mix dimensions and metrics from different scopes without understanding the consequences. For example, a user-level dimension (like “User ID�) cannot be directly paired with a hit-level metric (like “Pageviews�) without causing double-counting. GA4 handles this by automatically applying the appropriate aggregation model.
Common Dimensions and Metrics in GA4
In Universal Analytics (the older version), dimensions and metrics were predefined and limited. GA4 is more flexible but still has a core set. Here are the most common ones you’ll encounter:
- Dimensions: Session source/medium, device category, country, page path, language, browser, campaign name, user age, user gender (if enabled), and event name.
- Metrics: Sessions, engaged sessions, engagement rate, total users, new users, average engagement time per session, conversions, event count, revenue, and views.
Note that some metrics are user-scoped (e.g., total users), while others are session-scoped (e.g., sessions) or event-scoped (e.g., event count). When you pair a dimension with a metric, the scope must be compatible. For instance, you can’t meaningfully report “total users by page path� because a user may visit many pages; GA4 will show the user in each page row, which is not a true unique count.
How to Choose the Right Combination
Choosing the right dimensions and metrics depends on the question you’re trying to answer. Start with the business question, then select the dimension that segments the data and the metric that measures the outcome. For example:
- Question: Which marketing channel brings the most engaged users? → Dimension: Session default channel group; Metric: Engaged sessions.
- Question: Which pages have the highest bounce rate? → Dimension: Page path; Metric: Bounce rate (in GA4, it’s the inverse of engagement rate).
- Question: What is the average order value by device? → Dimension: Device category; Metric: Average purchase revenue per user.
A common mistake is picking a dimension that is too granular, making the report noisy, or too broad, hiding important differences. Also, beware of using a metric that is not compatible with the dimension’s scope. Always check the “scope� label in the GA4 interface when building a custom report.
Common Mistakes and Misconceptions
One of the most frequent errors is confusing sessions with users. A session is a single visit, while a user is a unique person. If you report “users by source,� a user who comes from three different sources will appear in three rows, but the total users column will still count them once (if you use the “total users� metric). However, if you use “active users� (which is user-scoped), the sum of the rows may not equal the total because of deduplication. Another misconception is that all metrics are additive. For example, average session duration is not additive—you can’t sum the averages of two segments to get the overall average. You must recompute from the underlying sums. Also, in GA4, “bounce rate� is defined as the percentage of sessions that were not engaged, which is different from the old Universal Analytics definition. Always verify the exact definition in the GA4 documentation.
How to Use Metrics and Dimensions in Custom Reports
In GA4, you can create custom reports in the “Explore� section. Here’s a typical workflow:
- Go to Explore and choose a blank template (e.g., Free Form).
- Add a dimension from the list on the left, such as “Landing page.�
- Add a metric, such as “Engaged sessions.�
- Drag and drop them into the rows and columns area. You can also add a second dimension to create a breakdown.
- Adjust the visualization, date range, and filters as needed.
Remember that GA4 has a limit on the number of dimensions and metrics you can combine in a single report (usually 5 dimensions and 10 metrics, but this can vary). Also, custom dimensions must be defined in the admin panel before they appear in reports. For example, if you want to track a “member status� dimension, you need to create it and send it with your events.
Frequently Asked Questions
What is the difference between a metric and a dimension in Google Analytics?
A dimension is a descriptive attribute (like “City� or “Device type�), while a metric is a number (like “Sessions� or “Revenue�). In a report, dimensions are usually the rows, and metrics are the columns. A metric without a dimension is just a total; a dimension without a metric is just a list of labels.
Can I use any dimension with any metric?
No. Each dimension and metric has a scope: user, session, or event. Pairing a user-scoped dimension with an event-scoped metric can lead to double-counting or meaningless numbers. For example, “User ID� (user-scoped) with “Event count� (event-scoped) would show the same event count for each user, which is not useful. GA4 will often warn you or automatically adjust the aggregation, but it’s best to check the scope in the documentation.
Why do my metrics not add up to the total in GA4?
This is usually because of deduplication. For example, if you report “Users by device,� a user who used both a phone and a desktop will appear in both rows, but the total “Users� row counts them only once. The sum of the rows will be higher than the total. This is expected behavior; to get a true total, use a metric that is not deduplicated, like “Sessions,� or apply a filter to isolate a single device.
What is a “custom dimension� and how do I create one?
A custom dimension is a dimension that you define yourself, such as “Logged-in status� or “Plan type.� In GA4, you create it in Admin → Custom definitions. You then send the value with your events using the user_properties or event_parameter fields in your tracking code. After that, it becomes available in reports and explorations.
Is there a limit to how many metrics and dimensions I can put in one report?
Yes. In GA4 Explore reports, you can typically add up to 5 dimensions and 10 metrics in a single free-form report. There are also limits on the number of rows returned (usually 50,000). If you need more, you can use the API to export data.
How do I know if a metric is a “sum� or an “average� type?
In the GA4 interface, when you hover over a metric name, it often shows a description. For example, “Engagement rate� is a ratio, so it’s not additive. “Event count� is a sum. If you’re unsure, check the GA4 help center or the API reference, which lists each metric’s type (SUM, AVERAGE, RATIO, etc.).
Related
Formula used
in t | Finish time | min | 50 | 0 in d | Distance | km | 10 | 0 out pace | Average pace | min/km | t / d | 2 out speed | Average speed | km/h | d / (t / 60) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.