---
title: "Track event"
method: POST
path: "/event"
---

# Track event

`POST /event`

## Request

- Base URL: `https://trackcmp.net`
- URL: `https://trackcmp.net/event`
- Auth: none required

Track an event using event tracking. Event Tracking must be toggled on in your ActiveCampaign account on "Website" -> "Site Tracking" (scroll down to Event tracking) in order for this call to work.

## Headers

- `Content-Type` string, required

## Request body

- object
  - `key` string, required: This value is unique to your ActiveCampaign account and can be found named "Event Key" on "Website" -> "Site Tracking" (scroll down to Event tracking) inside your ActiveCampaign account.
  - `event` string, required: The name of the event you wish to track. (Max of 32 Characters)
  - `eventdata` string: A value you wish to store for the event.
  - `actid` string, required: This value is unique to your ActiveCampaign account and can be found named "actid" on "Website" -> "Site Tracking" (scroll down to Event tracking) API.
  - `visit` string, json, required: The json-encoded email address of the contact you wish to track this event for. {"email":"visitor@example.com"})

## Response `200`

200

- object
  - `success` integer
  - `message` string

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/activecampaign/apis/trackcmp.md) - [All operations](https://skmtc.dev/activecampaign/apis/trackcmp/llms.txt) - [OpenAPI document](https://skmtc.dev/activecampaign/apis/trackcmp/revisions/dc9f70329d59?raw)
