Connect

Connect the chosen Google Analytics property

Changed on

For headless flows. Connects the property the user picked as a googleanalytics account and returns where to send the user next.

  • On success: your redirect_url with connected=googleanalytics, profileId, accountId and username.
  • When the connect was refused (for example a billing block): an error.

Consumes the pendingDataToken; a refused or failed attempt leaves it usable for a retry.

Send your API key (or connect token) for the same profile with a headless token.

post/v1/connect/googleanalytics/select-property

Request

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

Request body

pendingDataTokenstring required

Token from the headless redirect.

propertyIdstring required

A propertyId from the properties list.

Example request

{
  "propertyId": "312456789"
}

Response

The property is connected, or the connect was refused with a reason in redirect_url

redirect_urlstring

Where to send the user next.

Example response

{
  "account": {
    "platform": "googleanalytics"
  }
}

Changes