Skip to main content

Trackers

Objectiv currently supports three trackers:

Browser Tracker

The Browser Tracker is available via npm. It supports core tracking methods out of the box.

Example usage:

import { trackClick } from '@objectiv/tracker-browser';
<div
onClick={(event) => {
trackClick({ element: event.target })
}}
/>

By default, the Browser Tracker automatically tracks ApplicationLoaded and URLChange events.

React Tracker

The React Tracker is available via npm to be directly installed into your React application. It supports all core tracking methods out of the box, and provides added shorthands for React components.

Example usage:

import { tagButton } from '@objectiv/tracker-browser';
<Button {...tagButton({ id: 'button-2', text: "Do It!" })}>Do It!</Button>

See the How-to Guide for React to get started.

By default, the React Tracker automatically tracks ApplicationLoaded and URLChange events.

Angular Tracker

The React Tracker is available via npm to be directly installed into your React application. It supports all core tracking methods out of the box, and provides added shorthands for Angular components.

Example usage:

// a button tag 
<button [tagButton]="{ id: 'button-1', text: 'Click Me!' }">Click Me!</button>

See the How-to Guide for Angular to get started.

By default, the Angular Tracker automatically tracks ApplicationLoaded and URLChange events.

Extensibility: Plugins

The Core Tracker is extensible through plugins. Each plugin can control when it's enabled, e.g. only if a Web environment is available.

Three plugins are supported out of the box, and automatically enabled when the environment supports them: