Dimensions and metrics
Understand the building blocks of your reports.
Every report in Google Analytics is made up of dimensions and metrics.
Dimensions describe characteristics of your users, their sessions and actions. The dimension City describes a characteristic of sessions and indicates the city, for example, "Paris" or "New York", from which each session originated. The dimension Page describes a characteristic of page view actions and indicates the URL of each page that was viewed.
Metrics are quantitative measurements. The metric Sessions is the total number of sessions. The metric Pages/Session is the average number of pages viewed per session.
The tables in most Google Analytics reports organize dimension values into rows, and metrics into columns. For example, this table shows one dimension (City) and two metrics (Sessions and Pages/Session).
Valid dimension-metric combinations
Not every metric can be combined with every dimension. Each dimension and metric has a scope: users, sessions, or actions. In most cases, it only makes sense to combine dimensions and metrics that share the same scope. For example, Sessions is a session-based metric so it can only be used with session-level dimensions like Source or City. It would not be logical to combine Sessions with an action-level (or, hit-level) dimension like Page.
For a list of the valid dimension-metric pairs, use the Dimensions and Metrics Reference on the Developer site.
How metrics are calculated
In Analytics, user metrics are calculated in two basic ways:
- As overview totals
where the metric is displayed as a summary statistic for your entire site, such as bounce rate or total pageviews.
- In association with one or more reporting dimensions
where the metric value is qualified by selected dimension(s).
The following diagram illustrates these two types of calculations with a simple example. On the left side, user data is calculated as an overview metric, while the same data is calculated via the New User dimension on the right side.
In the User Overview example, calculations for time on site are computed using the time difference between each user's initial session and the exit, with the sum of each session length averaged across 3 sessions. This number is based on a relatively simple calculation achieved by gathering time stamp data at the request level.
In the New vs Returning example, averages are not computed for all sessions, but rather via the User Type dimension. By pairing the Time On Site metric with a dimension, you can analyze this metric via returning vs new users, where the calculations are modified by the requested dimension. The use of the dimension offers an insight into user behavior not provided in the overview report: it's clear that new users are spending more time on your site than returning users.
While this report shows time on site varying for different user types, you cannot use this report to determine why this is the case. Only you know the design and purpose of your site, so you would also need to use other reports like Site Overlay and Keywords in order to build a consistent picture to support your interpretation of user behavior.
Metrics calculation is also affected by stacking more than one dimension with a given metric. In both the preformatted and custom reports, you can use multiple dimensions together. For example, suppose you use both the User Type dimension and the Language dimension to analyze time on site for your website. In this case, the calculation for new versus returning users is the same, but when you drill down to view new users using the Language dimension, the calculation is further modified by the additional dimension. So, for example, your user breakdown might look like this, where the top site times are listed in order:
|User Type||Language||Avg Time On Site|
|All Types||All Languages||3:25|
These numbers are based on an actual Analytics report. In this case, you can determine whether new or returning users stayed the longest, and by using an additional dimension, which languages in each of these categories resulted in the longest time on site.
Because Google Analytics attempts to answer a variety of web analytics questions about user behavior, it uses different calculation types or attribution models to arrive at the data that you see in the reports. Think about each Analytics report as a response to a particular kind of user analysis question. Often, these questions fall into distinct categories:
- Content: How many times was a particular page viewed?
- Goals: Which pages URLs contributed to the highest goal conversion rate?
- Ecommerce: How much value did a given page contribute to a transaction?
- Internal Search: Which internal search terms contributed to a transaction?
For each of these major categories and the reports that they contain, Google Analytics uses a distinct attribution model. Because each attribution model is designed to calculate a known set of metrics, you might notice that some metrics—such as Pageviews—appear only in certain reports and not in others. This is due to the attribution model that is used for that report.
The Google Analytics reports use three attribution models:
- Per Request
- Per Value
- Per Site Search
Per Request Attribution
This attribution gives aggregate values for a single metric or for a metric/dimension pairing. This is the most common and simplest type of Analytics attribution, since values are determined from individual user GIF requests. Thus, for any given request, it is possible to look up a particular dimension and/or metric.
Most dimension values are available at the request level and remain persistent either via the
HTTP/GET request itself, or in the GIF request, for every page or event request made to your site. Some common dimensions available at the request level are:
- page URI—available with every request to your site, this indicates the path of the page being accessed
- campaign—if a user comes in via a campaign, that campaign remains persistently available with every subsequent request, until the campaign itself changes
- user agent—every request from a user contains the browser information for that user, sent in via the
HTTP/GETrequest from the browser and stored in the log files directly.
Page Value Attribution
The purpose of this attribution type is to answer the question: "How useful was my page in relation to a goal or revenue value?" This attribution model is largely used in the Top Content and Content Detail reports when determining the average $Index value for a set of pages, or the $Index value of a particular page on your site. The following illustration shows a series of user pageviews in relationship to goals and purchases, such as what might occur on your site.
Legend: P1 through P4 represent pages. The shopping bags indicates a receipt page, and the flag image indicates a goal.
This attribution model is referred to as a "forward looking" attribution model, because it applies value to a page by looking forward to the goals and/or purchases that take place after the page was visited. The following table shows the value attributed to each page in this sequence.
|P1||$55 + Goal 1|
|P2||$55 + Goal 1|
|P3||$35 + Goal 1|
This attribution model is not used in Goals or Ecommerce reports, since those reports do not display page URIs or titles in relation to ecommerce activities.
Site Search Attribution
This attribution model determines the contribution of search terms to goal and revenue value. Here, the Site Search Terms report displays goal conversion rates and goal values per search term.
This attribution model operates in a different fashion from Per Value attribution, since Goal value is attributed to the nearest search term leading up to the conversion, not after. The following diagram illustrates a sequence of internal site searches along with page views and purchases.
Legend: P1 through P4 represent pages. The shopping bags indicates a receipt page, the search icon indicates a search for the terms "Shoes" and "Flowers." The flag image indicates a goal.
Using this model, the search terms attributed to Goal 1 and the transactions are:
In this model, transactions or goals are attributed to the search term immediately preceding the goal or transaction.