Connect

List Google Analytics properties for a pending connect

Changed on

For headless flows: lists the GA4 properties of a pending Google Analytics connect, so you can show your own picker.

Flow

  1. The connect started with redirect_url=...?headless=true, and the Google account can read several GA4 properties.
  2. Zernio redirects to your redirect_url with step=select_property, profileId, platform=googleanalytics and a pendingDataToken.
  3. Call this to list the properties and show your own picker.
  4. Call POST /v1/connect/googleanalytics/select-property.

Token

  • Listing does not consume the token.
  • A headless token passes through your own URLs, so it is honored only together with your API key (or connect token) for the same profile.
  • It expires after one hour.
get/v1/connect/googleanalytics/properties

Request

  • Base URL
    https://zernio.com/api
  • URL
    https://zernio.com/api/v1/connect/googleanalytics/properties
  • Auth
    • HTTP bearer
    • or API key in header X-Connect-Token

Query parameters

pendingDataTokenstring required

Token from the headless redirect.

Response

Properties the Google account can read

Example response

{
  "properties": [
    {
      "propertyId": "312456789",
      "displayName": "acme.com",
      "accountName": "Acme Inc"
    }
  ]
}

Changes