---
title: "Track Event"
method: POST
path: "/api/trackevent"
tags: ["TrackEvent"]
---

# Track Event

`POST /api/trackevent`

## Request

- Base URL: `https://indexing-dev.hawksearch.net`
- URL: `https://indexing-dev.hawksearch.net/api/trackevent`
- Auth: none declared
- TypeScript: <https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/docs/api/trackevent/post.ts> (a function with typed inputs; its response is checked against the schema)

Track events to record site visitor activity which is used in reporting and recommendations

## Request body

- TrackEventRequest
  - `EventType` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18, required
  - `EventData` string, required
  - `ClientGuid` string, required
  - `VisitId` string, uuid
  - `VisitorId` string, uuid
  - `CustomDictionary` object
  - `TrackingProperties` object

## Response `200`

OK

- object

---

[API](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) - [All operations](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/revisions/24cba7bf3468?raw)
