---
title: "Track Activity"
method: POST
path: "/activity-tracking/track"
tags: ["activity-tracking"]
---

# Track Activity

`POST /activity-tracking/track`

Track a user activity. Public, so it works for every visitor.

Queued (app.core.deferred). The admin live feed is fed from the consumer
once the row is written, so it lags the click by the queue's latency,
normally well under a second.

## Request body

- ActivityTrackRequest
  - `session_id` string, required
  - `user_id` string, nullable
  - `activity_type` string, required
  - `activity_name` string, required
  - `activity_category` string, nullable
  - `page_url` string, nullable
  - `page_title` string, nullable
  - `referrer_url` string, nullable
  - `target_element` string, nullable
  - `target_text` string, nullable
  - `metadata` object, nullable
  - `duration_ms` integer, nullable
  - `interaction_time_ms` integer, nullable
  - `anonymous_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored.md) · [All operations](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/llms.txt) · [OpenAPI document](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/revisions/ee945980cf00?raw)
