Try the MCP server for Google Analytics. Install from
GitHub, and see the
announcement for more details.
AccessMetric
Stay organized with collections
Save and categorize content based on your preferences.
The quantitative measurements of a report. For example, the metric accessCount
is the total number of data access records.
JSON representation |
{
"metricName": string
} |
Fields |
metricName |
string
The API name of the metric. See Data Access Schema for the list of metrics supported in this API. Metrics are referenced by name in metricFilter & orderBys .
|
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 2025-04-02 UTC.
[null,null,["Last updated 2025-04-02 UTC."],[[["\u003cp\u003eThis documentation describes the JSON representation of quantitative measurements, called metrics, within a report.\u003c/p\u003e\n"],["\u003cp\u003eMetrics, such as \u003ccode\u003eaccessCount\u003c/code\u003e, quantify aspects of data, like the total number of data access records.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emetricName\u003c/code\u003e field within the JSON structure uses a string to identify the specific metric being used, referencing the Data Access Schema for supported options.\u003c/p\u003e\n"]]],["The content defines a JSON structure for representing quantitative report metrics. The core element is `metricName`, a string denoting the API name of a specific metric. This name corresponds to a supported metric listed in the Data Access Schema. `metricName` is crucial for filtering and ordering data, utilizing `metricFilter` and `orderBys`. The `accessCount` example illustrates a metric that measures the total data access records.\n"],null,["# AccessMetric\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe quantitative measurements of a report. For example, the metric `accessCount` is the total number of data access records.\n\n| JSON representation |\n|----------------------------------|\n| ``` { \"metricName\": string } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `metricName` | `string` The API name of the metric. See [Data Access Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) for the list of metrics supported in this API. Metrics are referenced by name in `metricFilter` \\& `orderBys`. |"]]