---
title: "Track Event"
method: POST
path: "/analytics/track-event"
tags: ["analytics"]
---

# Track Event

`POST /analytics/track-event`

## Request

- Base URL: `https://api.erux.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.erux.ai/analytics/track-event`
- Auth: none declared

Track an analytics event

## Request body

- AnalyticsEventRequest: Schema for analytics event tracking requests
  - `event` string, required: Event name
  - `user_id` string, nullable: User identifier
  - `session_id` string, nullable: Session identifier
  - `event_data` object, nullable: Additional event data
  - `page_location` string, nullable: Page URL
  - `page_title` string, nullable: Page title
  - `click_url` string, nullable: Clicked URL
  - `click_text` string, nullable: Clicked text
  - `timestamp` string, nullable: Event timestamp
  - `load_time` number, nullable: Page load time
  - `response_time` number, nullable: Response time
  - `environment` string, nullable: Environment
  - `gtm_container_id` string, nullable: GTM container ID
  - `birth_location` string, nullable: Birth location
  - `birth_city` string, nullable: Birth city
  - `birth_state` string, nullable: Birth state
  - `birth_country` string, nullable: Birth country
  - `birth_latitude` number, nullable: Birth latitude
  - `birth_longitude` number, nullable: Birth longitude
  - `birth_date` string, nullable: Birth date
  - `birth_time` string, nullable: Birth time
  - `birth_timezone` string, nullable: Birth timezone

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine.md) · [All operations](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine/revisions/9dc718df71b0?raw)
