DevTools

A development tool for inspecting consent state, geolocation, loaded scripts, and consent events in real time.

DevTools is a floating panel that shows the internal state of the consent manager. Use it during development to inspect consent values, geolocation results, loaded scripts, and debug consent flows. Also exported as C15TDevTools if you need to avoid naming conflicts with other devtools.

Info

DevTools should only be included in development builds. The component renders nothing to the React tree - it injects directly into document.body.

Installation

DevTools lives in a separate package to keep it out of production bundles:

Usage

Configuration

Panels

PanelWhat it shows
ConsentsCurrent consent state for all categories
LocationDetected jurisdiction, country, region, and consent model
ScriptsConfigured scripts and their load status
IABIAB TCF state (when enabled) - TC string, vendor consents, purposes
EventsTimeline of consent events and state changes
ActionsButtons to trigger consent actions (accept all, reject all, reset)

Props

Loading…