---
title: "Track event for the given user."
method: POST
path: "/v1/track"
---

# Track event for the given user.

`POST /v1/track`

Send event and user details to Optimizely analytics backend, so you can see metrics for an experiment. You can view metrics either on your Results page or as a data export.

## Query parameters

- `eventKey` string, required

## Request body

- TrackContext
  - `eventTags` object
  - `userId` string
  - `userAttributes` object

## Response `200`

Valid response, event received

## Other responses

- `400` — Missing required parameters
- `401` — Unauthorized, invalid JWT
- `403` — You do not have necessary permissions for the resource

---

[API](https://skmtc.dev/optimizely/apis/optimizely-agent-api.md) · [All operations](https://skmtc.dev/optimizely/apis/optimizely-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optimizely/optimizely-agent-api/revisions/8aa6750d4b77/schema)
