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:

AttributeDatatypeDescriptionValue
emailStringEmail to identify the user[email protected]
pageStringPage name"Checkout page"
propertiesObjectContains your custom fields. These user properties will populate your contact databaseSee example above

Response

Response codeMessageDescription
204Page has been tracked successfullyPage has been tracked but no JSON response with the 204 response code
400Bad requestBad request due to incorrect or missing parameters in the request.

What’s Next