Skip to navigation

Track page views

View as Markdown
Legacy Tracker Documentation

For the legacy tracker doc, check our guide here.

This endpoint tracks your page views.

Track a page view by email

curl --request POST \
--url https://in-automate.brevo.com/api/v2/trackPage \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'ma-key: YOUR_MA_KEY' \
--data '
{
"email": "john.doe@email.com",
"page": "Checkout",
"properties": {
"title": "Dashboard",
"FIRSTNAME": "John",
"LASTNAME": "Doe"
}
}
'

Track a page view by external ID (no email required)

curl --request POST \
--url https://in-automate.brevo.com/api/v2/trackPage \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'ma-key: YOUR_MA_KEY' \
--data '
{
"identifiers": {
"ext_id": "customer_98765"
},
"page": "Checkout",
"properties": {
"title": "Dashboard"
}
}
'

Parameters

AttributeDatatypeDescription
emailStringEmail used to identify the user. Required unless identifiers is provided.
identifiersObjectContact identifiers. At least one key required if email is omitted. See supported identifiers.
pageStringPage name
propertiesObjectCustom fields. These user properties populate your contact database.

Response

Response codeMessageDescription
204Page has been tracked successfullyPage tracked. No JSON response body is returned with 204.
400Bad requestIncorrect or missing parameters in the request.