AI-generated Key Takeaways
-
This document outlines the JSON representation of a dimension within Google Analytics, detailing its structure and the purpose of each field.
-
A dimension is described by its API name, UI name, description, any deprecated API names, whether it's a custom definition, and its category.
-
The provided JSON schema can be used to understand how dimension data is structured and accessed within the Google Analytics system.
-
Developers can leverage this information to programmatically interact with and utilize dimensions for analysis and reporting purposes.
Explains a dimension.
JSON representation |
---|
{ "apiName": string, "uiName": string, "description": string, "deprecatedApiNames": [ string ], "customDefinition": boolean, "category": string } |
Fields | |
---|---|
api |
This dimension's name. Useable in Dimension's |
ui |
This dimension's name within the Google Analytics user interface. For example, |
description |
Description of how this dimension is used and calculated. |
deprecated |
Still usable but deprecated names for this dimension. If populated, this dimension is available by either |
custom |
True if the dimension is custom to this property. This includes user, event, & item scoped custom dimensions; to learn more about custom dimensions, see https://support.google.com/analytics/answer/14240153. This also include custom channel groups; to learn more about custom channel groups, see https://support.google.com/analytics/answer/13051316. |
category |
The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together. |