CDPGuidesSupport

Consent JavaScript SDK

Reference for the window.ours_consent JavaScript SDK — methods, events, and examples — available inside the authenticated Ours Privacy app.

Consent JavaScript SDK

Use this page to find the window.ours_consent JavaScript SDK reference — methods, events, examples, and the consent settings REST API details.

The full reference lives inside the authenticated Ours Privacy app, where it stays in sync with your account's consent configuration.

Open Consent Settings in app

Open a consent settings configuration and select API Reference for SDK methods, events, examples, and consent settings REST API details.

The window.ours_consent section of the in-app API Reference. Each method gets its own panel with the value it returns: getConsent() returns a ConsentState, documented with the four possible consent action types and a code example, above a collapsed section covering the initial consent state and category defaults.

Next Steps

How is this guide?

On this page