Google Analytics · Schema

MetricMetadata

Explains a metric.

AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine-LearningAttribution

Properties

Name Type Description
apiName string A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.
blockedReasons array If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for
category string The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
customDefinition boolean True if the metric is a custom metric for this property.
deprecatedApiNames array Still usable but deprecated names for this metric. If populated, this metric is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the met
description string Description of how this metric is used and calculated.
expression string The mathematical expression for this derived metric. Can be used in [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics are not expressions, and for non-expressions, this field
type string The type of this metric.
uiName string This metric's name within the Google Analytics user interface. For example, `Event count`.
View JSON Schema on GitHub

JSON Schema

google-analytics-metricmetadata-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MetricMetadata",
  "title": "MetricMetadata",
  "description": "Explains a metric.",
  "properties": {
    "apiName": {
      "description": "A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.",
      "type": "string"
    },
    "blockedReasons": {
      "description": "If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).",
      "items": {
        "enum": [
          "BLOCKED_REASON_UNSPECIFIED",
          "NO_REVENUE_METRICS",
          "NO_COST_METRICS"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "category": {
      "description": "The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.",
      "type": "string"
    },
    "customDefinition": {
      "description": "True if the metric is a custom metric for this property.",
      "type": "boolean"
    },
    "deprecatedApiNames": {
      "description": "Still usable but deprecated names for this metric. If populated, this metric is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the metric will be available only by `apiName`.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "description": {
      "description": "Description of how this metric is used and calculated.",
      "type": "string"
    },
    "expression": {
      "description": "The mathematical expression for this derived metric. Can be used in [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics are not expressions, and for non-expressions, this field is empty.",
      "type": "string"
    },
    "type": {
      "description": "The type of this metric.",
      "enum": [
        "METRIC_TYPE_UNSPECIFIED",
        "TYPE_INTEGER",
        "TYPE_FLOAT",
        "TYPE_SECONDS",
        "TYPE_MILLISECONDS",
        "TYPE_MINUTES",
        "TYPE_HOURS",
        "TYPE_STANDARD",
        "TYPE_CURRENCY",
        "TYPE_FEET",
        "TYPE_MILES",
        "TYPE_METERS",
        "TYPE_KILOMETERS"
      ],
      "type": "string"
    },
    "uiName": {
      "description": "This metric's name within the Google Analytics user interface. For example, `Event count`.",
      "type": "string"
    }
  },
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-analytics-metricmetadata"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.