Pixel Auditor/Help/Consent Mode Simulator

Consent Mode Simulator

Grant / Deny injection, 19 CMP auto-clicks, Reset Consent.

The Consent Mode Simulator lets you test how your tracking responds to consent transitions, without waiting for a real user to click your CMP. It lives in the Audit tab, in its own panel.

Manual injection: Grant / Deny

The Grant and Deny buttons inject gtag('consent', 'update', …) calls and watch the 5-second window for what re-fires.

Grant

gtag('consent', 'update', { ad_storage: 'granted', analytics_storage: 'granted', ad_user_data: 'granted', ad_personalization: 'granted', functionality_storage: 'granted', personalization_storage: 'granted', security_storage: 'granted' });

Deny

gtag('consent', 'update', { ad_storage: 'denied', analytics_storage: 'denied', ad_user_data: 'denied', ad_personalization: 'denied' });

The 5-second diff

After injection, Pixel Auditor watches for new fires for 5 seconds. The diff panel shows what changed — which tags woke up on Grant, which stopped on Deny. If the simulator is a no-op (current state already matches target), an advisory is shown.

"Accept via CMP" / "Reject via CMP" auto-click

For 19 supported CMP vendors, Pixel Auditor can click the actual CMP button rather than just synthesise the gtag call. This is how you verify that your CMP's wiring works, not just that gtag responds to consent.

Supported CMP vendors

OneTrust

#onetrust-accept-btn-handler, #onetrust-reject-all-handler

Cookiebot

#CybotCookiebotDialogBodyButtonAccept / Decline

CookieYes

.cky-btn-accept, .cky-btn-reject

Complianz

.cmplz-accept, .cmplz-deny

Klaro

.cm-btn-accept-all, .cm-btn-decline

Didomi

#didomi-notice-agree-button, #didomi-notice-disagree-button

Quantcast

.qc-cmp2-summary-buttons

TrustArc

TRUSTe iframe button selectors

Osano

.osano-cm-accept-all, .osano-cm-deny-all

Usercentrics

Shadow-DOM button traversal

CookieLawInfo (CLI)

#wt-cli-accept-all-btn

Iubenda

.iubenda-cs-accept-btn

Sourcepoint

Sourcepoint message-iframe handling

Termly

.t-acceptAllButton

Ketch

.ketch-banner-accept

Axeptio

.ax-banner-accept

tarteaucitron

#tarteaucitronAllAllowed

WP-GDPR (WPEka)

WPEka plugin selectors

Secure Privacy

Secure Privacy banner selectors

Generic fallback

For custom or in-house banners, a text-based heuristic locates buttons whose visible text matches "Accept", "Allow", "Agree", "Got it" or the equivalent reject patterns. Less reliable than vendor-specific selectors but covers the long tail.

Reset Consent

The Reset button wipes site storage (cookies + localStorage + sessionStorage for the host) and reloads, so the CMP re-prompts. Use this to test the full pre-consent → consent → re-fire flow from a clean state without manual cookie deletion.

caution Reset Consent clears all site storage for the active host, including login state and shopping carts. Use on a test environment or be ready to re-authenticate.

When the no-op advisory shows

If you click Grant when consent is already granted (or Deny when already denied), the simulator advises that the call would be a no-op. No tags re-fire, because there's no state change. To test the transition, Reset first.