Documentation Index
Fetch the complete documentation index at: https://docs.unifygtm.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Analytics API allows you to send both client-side and server-side events into Unify. There are three types of events you can send:- Page events capture page visits on your website or web application
- Custom events capture actions or other custom activities that you define
- Identify events capture visitor identity information (e.g., their email address)
Usage
Request format
The base URL of all API requests to the Analytics API is:Authentication
When sending requests to the Analytics API from client devices, you should use
your write key rather than an API key. Write keys are safe to expose
publicly whereas API keys are not.To prevent exposure of sensitive API keys, if you send a request to
the Analytics API that contains an API key by accident, Unify will immediately
expire the key as a precautionary measure.
<token> with your Unify write key.
Request origin
Requests that use a write key must include an allowedOrigin header. This
applies to requests sent from both browsers and from server-side code. For
server-side requests, set Origin to the website or application origin
associated with the event source.