For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Help CenterAPI KeysStatusSign In
GuidesAPI ReferenceChangelog
GuidesAPI ReferenceChangelog
  • Getting started
    • Overview
    • Quickstart
    • Authentication
    • Rate limits
  • Messaging API
    • Send transactional email
    • Send transactional SMS
    • Send transactional WhatsApp
  • Marketing Platform
    • Manage your contacts
    • Track website activity
    • Send WhatsApp campaigns
    • Weekly event exports
  • Webhooks
    • Getting started
    • Conversations webhooks
    • Payment webhooks
    • Marketing webhooks
    • Transactional webhooks
    • Loyalty webhooks
    • Batched webhooks
    • Secure webhook calls
    • Meetings and phone webhooks
    • Push notification webhooks
    • Sales CRM webhooks
  • Conversations
    • Getting started
    • Customize the chat widget
    • JavaScript API reference
    • REST API reference
    • Conversations webhooks
  • eCommerce
    • Activate eCommerce app
    • Manage product categories
    • Manage products
    • Manage orders
    • Coupon collections
    • eCommerce tracker events
  • Loyalty
    • Overview
    • Set up a program
    • Enroll members
    • Credit & debit points
    • Read member data
    • Best practices
  • Custom Objects
    • Custom objects management
  • Brevo tracker and events
    • Getting started
    • JavaScript implementation
    • REST implementation
      • Identify users
      • Track link clicks
      • Track page views
      • Track custom events
    • Legacy tracker documentation
    • Events
  • Accounts and settings
    • Senders and domains
    • User activity logs
    • External feeds
    • Invited users
LogoLogo
Help CenterAPI KeysStatusSign In
On this page
  • Authentication
Brevo tracker and events

REST implementation

Was this page helpful?
Previous

Identify users

Next
Built with
Legacy Tracker Documentation

For the legacy tracker doc, check our guide here.

This page and the ones that follow describe how to use the REST API to implement the Brevo Tracker features. The JS implementation is simpler and supports more capabilities. For example:

  1. The JavaScript tracker tracks page views automatically. With the REST implementation, you must send the events yourself.
  2. Brevo cannot track users who clicked on your emails through REST.
  3. With REST, you must pass an email in each call to identify users.
Combining the REST and JS implementations

You can combine both tracking technologies. For example, use JS on the client side to identify and track user behaviour on your website, and use REST on the server side to track orders.

Authentication

The REST implementation requires a key, shown as client_key below, to authenticate. Get it from your Brevo account.

1<script src="https://cdn.brevo.com/js/sdk-loader.js" async></script>
2<script>
3 // Version: 2.0
4 window.Brevo = window.Brevo || [];
5 Brevo.push([
6 "init",
7 {
8 client_key: "YOUR_CLIENT_KEY",
9 // Optional: Add other initialization options, see documentation
10 }
11 ]);
12</script>