Connect
List Google Analytics properties for a pending connect
Changed onFor headless flows: lists the GA4 properties of a pending Google Analytics connect, so you can show your own picker.
Flow
- The connect started with redirect_url=...?headless=true, and the Google account can read several GA4 properties.
- Zernio redirects to your redirect_url with step=select_property, profileId, platform=googleanalytics and a pendingDataToken.
- Call this to list the properties and show your own picker.
- 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 URLhttps://zernio.com/api
- URLhttps://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
- info
added the non-success response with the status
- info
- info
endpoint added
- info