JavaScript implementation
Legacy Tracker Documentation
For the legacy tracker doc, check our guide here.
This is the most direct implementation if you need to track all events on your website. Set up a short JS snippet on your site and Brevo starts tracking your users and page views.
If you use one of our plugins (Wordpress, Prestashop) or Google Tag Manager, no development is required to get the tracking running.
There are two ways to implement JavaScript: through the JavaScript tracker code or through Google Tag Manager.
This section explains how to implement the tracker with JavaScript. This is the recommended installation. For another approach, see the REST implementation.
This section covers the manual installation only: add the JS snippet on your website to start tracking activity.
To install the Brevo tracker using Google Tag Manager, see this article.
If you use one of our plugins, you don’t need to install this snippet — it is already included. See this article for details.
Manual installation
Copy and paste the script from your Brevo account at Automation > Settings. It looks like this:
Paste it into your website’s code just before the </head> closing tag.