Try the MCP server for Google Analytics. Install from
GitHub, and see the
announcement for more details.
DimensionHeader
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["\u003cp\u003eThis document explains how dimension columns are represented in reports, appearing as entries within rows and DimensionHeaders when requested.\u003c/p\u003e\n"],["\u003cp\u003eDimensions used only in filters or expressions do not generate columns or headers in the report.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation of a dimension column includes a "name" field, which is a string containing the dimension's name.\u003c/p\u003e\n"]]],["A dimension column in a report is defined by its `name` (a string). Dimensions included in the report's request generate column entries and DimensionHeaders. Dimensions only used in filters or expressions don't create report columns or headers. The JSON representation of a dimension is a single object with the `\"name\"` field.\n"],null,["# DimensionHeader\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nDescribes a dimension column in the report. Dimensions requested in a report produce column entries within rows and DimensionHeaders. However, dimensions used exclusively within filters or expressions do not produce columns in a report; correspondingly, those dimensions do not produce headers.\n\n| JSON representation |\n|----------------------------|\n| ``` { \"name\": string } ``` |\n\n| Fields ||\n|--------|--------------------------------|\n| `name` | `string` The dimension's name. |"]]