Track page views

When you install Brevo Tracker on your website using, by default we already take care of tracking the page views. However, sometimes it can be useful to track virtual page views if the page doesn't really change (multi-steps form completion, modals etc.). For such cases, you can always fire the page view events yourself.
    page_name, /*mandatory*/
    properties /*optional*/

The attributes for tracking page views are below.

page_nameStringName of your pageAbout Page
propertiesJSON objectJSON Object that describes the page context like page title or the visitors state like the visitors first and last namePage title


Reserved keywords

In addition to any key-value pair, you can pass four reserved keywords beginning with the prefix ma_ in the properties object:

  1. ma_url: the full URL of the page, including the scheme.
  2. ma_path: the path of the page, i.e. the url without the scheme, the domain, the query string or the fragments.
  3. ma_title: the title of the page.
  4. ma_referrer: the referrer of the page.

If any of this parameter is not provided then the value will be taken from the current page.

var page_name = 'homepage'

var properties = {
'ma_title' : 'My Home Page',
'ma_url' : '',
'ma_path' : '/home'
}, properties)