Skip to content

Consent Management: JavaScript APIs

10minFidesConsent Management
This tutorial requires Fides Cloud or Fides Enterprise. For more information, talk to our solutions team. (opens in a new tab)

Fides.js provides several JavaScript APIs depending on the functionalities included in your Fides license.


When Fides is configured to support the IAB's Global Privacy Platform (GPP), then fides.js includes the GPP API so that downstream services can call it to get a user's privacy preferences and ensure that advertising and other services are loaded according to user preferences.

You can inspect the GPP API and your current preferences by calling:

__gpp('ping', (data) => {console.log({data})})

from your browser console.

When GPP is supported in your jurisdiction, an object will be returned with information about the API and current user preferences. For more information about the GPP API, see the spec from the IAB in Github (opens in a new tab).