How do I add a custom dimension in Google Analytics?

How do I add a custom dimension in Google Analytics?

Set up custom dimensions

  1. Sign in to Google Analytics.
  2. Click Admin, and navigate to the property to which you want to add custom dimensions.
  3. In the PROPERTY column, click Custom Definitions > Custom Dimensions.
  4. Click New Custom Dimension.
  5. Add a Name.
  6. Select the Scope.

What is the difference between a dimension and a metric?

Dimensions are attributes of your data. For example, the dimension City indicates the city, for example, “Paris” or “New York”, from which a session originates. The dimension Page indicates the URL of a page that is viewed. Metrics are quantitative measurements.

How do custom dimensions work?

When a custom dimension has product-level scope, the value is applied only to the product with which the value is set. Because multiple products can be sent in a single hit, multiple product-level scoped custom dimensions can be sent in a single hit.

Are there custom dimensions and metrics for Google Analytics?

Custom dimensions and metrics are supported by the Google Analytics SDKs for Android and iOS v2.x or higher, analytics.js, and the Measurement Protocol. Custom dimensions and metrics require additional setup in your Analytics account and in your tracking code.

How are custom dimensions and metrics used in web development?

Web developers can use custom dimensions and metrics to segment and measure differences between logged in and logged out users, authors of pages, levels in games, or any other business data you have on a page. For a complete overview on how this feature works, read the Custom Dimensions and Metrics Feature Reference.

How are custom dimensions assigned in analytics.js?

Once configured, the custom dimension or metric will be assigned a unique index that identifies and differentiates one custom dimension or metric from another. You then use the index in the analytics.js library to send data for a particular custom dimension or metric.

How are custom dimensions used in custom reports?

By tracking this data with custom metrics, you can track progress against your most important metrics in flexible and easy-to-read custom reports. Custom dimensions can appear as primary dimensions in Custom Reports. You can also use them as Segments and secondary dimensions in standard reports.