Analytics

List Google Analytics (GA4) dimensions and metrics

Changed on

Every dimension and metric the connected GA4 property accepts in a report, including its custom definitions. Cached for one hour.

get/v1/analytics/googleanalytics/metadata

Request

  • Base URL
    https://zernio.com/api
  • URL
    https://zernio.com/api/v1/analytics/googleanalytics/metadata
  • Auth
    HTTP bearer

Query parameters

accountIdstring required

Zernio account ID of the Google Analytics connection.

Response

Available dimensions and metrics

accountIdstring
propertyIdstring

Example response

{
  "dimensions": [
    {
      "apiName": "sessionSource",
      "uiName": "Session source"
    }
  ],
  "metrics": [
    {
      "apiName": "sessions",
      "uiName": "Sessions",
      "type": "TYPE_INTEGER"
    }
  ]
}

Changes