Secure Your Front-end

Request a Demo

Join the leading security teams protecting their digital supply chain with CellWall.

By submitting this form, you agree to our privacy policy and terms.

Reference

Browser API, events, and preference storage

Reference CookieWall’s public browser methods, update event, and local preference representation.

Last reviewed September 12, 2026

CookieWall observes browser storage and related network activity so teams can connect an identifier to its source, provider, purpose, and consent category. Use the reference below to distinguish storage types and naming patterns before creating a manual mapping or troubleshooting a missing record.

Public browser API

Use the following table to understand how each area supports the task.

InterfacePurpose
`window.CellWallConsent.showDialog()`Open the consent interface.
`window.CellWallConsent.hideDialog()`Close the consent interface.
`window.CellWallConsent.getPreferences()`Return the stored category map or `null`.
`cellwall:consent:updated`Window event whose `detail` contains the updated category map.

Preference storage

CookieWall stores the category map as JSON in local storage under cellwall_consent_preferences. The map uses Strictly Necessary, Analytics, Marketing, and Functional boolean keys.

Secure Your Front-end

Request a Demo

Join the leading security teams protecting their digital supply chain with CellWall.

By submitting this form, you agree to our privacy policy and terms.

Browser API, events, and preference storage | CookieWall Docs