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 Pardot 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

There are four basic steps to using the API.

Step one: Retrieve the JavaScript file. The file includes the functions available in the Tracking and Consent JavaScript API.

Step two: Initialize a queue. The queue makes sure that commands are executed sequentially.

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

Step four: Execute custom tracking logic. Execute your logic using the Tracking and Consent API functions.

Use this guide to implement your own solutions using the API.