Tracking and Consent API Overview

The Tracking & Consent API provides functions for each step in the page view tracking process, giving you unparalleled control over how Account Engagement tracks page views. Use the API to implement your own solutions that cover your compliance needs and use cases.

An image that represents the 4 basic steps used in the tracking and consent API

To use the API:

  1. Retrieve the JavaScript file. The file includes the functions available in the Tracking and Consent JavaScript API.

  2. Initialize a queue. The queue makes sure that commands are executed sequentially.

  3. Configure the Tracker Data object. The object lets you set parameters for the activity and pass information between commands.

  4. Execute custom tracking logic. Execute your logic using the Tracking and Consent API functions.