Analytics

Resolve the analytics region for the caller

Returns the analytics region a client should send events to, derived from the edge geo headers on the request (cf-ipcountry, falling back to x-vercel-ip-country). eu is returned for callers in the EEA and the United Kingdom, where consent gating applies; non_eu is returned otherwise, including when the country is unknown. The response is never cached.

get/api/analytics-region

Response

The region resolved for this caller.

analyticsRegion'eu' | 'non_eu' required

Region an analytics client should send events to.

Example response

{
  "analyticsRegion": "eu"
}

Changes