Zernio
APIFor you
Zernio
APIFor you
Platforms

Google Analytics

Overview

Set up

Connect

Measure

Reports

Reference

Limits & errors
Dashboard
OverviewPlatformsAPI ReferenceResources
All platforms

Google Analytics

Analytics

Connect a GA4 property and read its reports, realtime data and available dimensions and metrics through the Zernio API.

Authentication details

Connecting accounts guide
OAuth 2.0 (Google)

Connect endpoints

  • GET /v1/connect/googleanalyticsGet Google Analytics OAuth connect URL
  • GET /v1/connect/googleanalytics/propertiesList Google Analytics properties for a pending connect
  • POST /v1/connect/googleanalytics/select-propertyConnect the chosen Google Analytics property
Read the full connect steps in the guide

Connect a Google Analytics 4 property to a profile and read its reports with your Zernio API key. A connected account uses platform: "googleanalytics" and represents one GA4 property. It reads data only and never posts.

Quick reference

PropertyValue
Platform valuegoogleanalytics
What it readsGA4 reports, realtime reports, and the property's dimensions and metrics
AuthOAuth 2.0 with a Google account
Scopehttps://www.googleapis.com/auth/analytics.readonly
Properties per accountOne. Connect another property to a different profile
Report caching10 minutes for reports, 1 hour for metadata, none for realtime
Social postingNo
List the accountsGET /v1/accounts?category=analytics

Before you start

The person connecting needs a Google account with at least Viewer access to a GA4 property. Universal Analytics properties are not supported.

Connect

Call GET /v1/connect/googleanalytics with the profile and send the user to the returned authUrl. If their Google account reads several properties, they pick one on a Zernio page. See Connect.

Common errors

ErrorCauseFix
googleanalytics_scope_missing on the redirectThe user unticked the Analytics permission on Google's consent screenConnect again and keep the permission ticked.
400 on a reportA dimension or metric name is wrong; Google's message names itList valid names with the metadata endpoint.
429 with rate_limitedGoogle's quota for the property is used upWait for the quota to refill.

In this section

Connect

Connect a GA4 property to a profile with Google sign-in, from the dashboard or with the connect API.

Reports

Run GA4 reports and realtime reports on a connected property, and list the dimensions and metrics it supports.

Limits & errors

What the Google Analytics connection does not do, its quotas, and the common errors when connecting a property or running a report.

Related

  • Get Google Analytics connect URL
  • Run a Google Analytics report
  • Run a realtime report
  • List dimensions and metrics
  • Connecting accounts

Google Analytics

6
  • POST
  • POST
  • GET
  • GET
  • GET
  • POST

Nothing matches that search.

Was this page helpful?

Limits & errors

What the HubSpot connection does not do, and the common errors when connecting a portal or changing its settings.

Connect

Connect a GA4 property to a profile with Google sign-in, from the dashboard or with the connect API.

On this page

Quick referenceBefore you startConnectCommon errorsIn this sectionRelated