Track page views
Legacy Tracker Documentation
For the legacy tracker doc, check our guide here.
This endpoint allows you to track your page views. You can use the cURL request mentioned below to send a request:
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": "[email protected]",
"page": "Checkout",
"properties": {
"title": "Dashboard"
"firstName": "John",
"lastName": "Doe"
}
}
'
Parameters are defined below:
Attribute | Datatype | Description | Value |
---|---|---|---|
email | String | Email to identify the user | [email protected] |
page | String | Page name | "Checkout page" |
properties | Object | Contains your custom fields. These user properties will populate your contact database | See example above |
Response
Response code | Message | Description |
---|---|---|
204 | Page has been tracked successfully | Page has been tracked but no JSON response with the 204 response code |
400 | Bad request | Bad request due to incorrect or missing parameters in the request. |
Updated about 2 months ago
What’s Next