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.
| Interface | Purpose |
|---|---|
| `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.