Guide
Let visitors revisit or withdraw consent
Connect a persistent privacy-settings control to CookieWall’s browser API so visitors can change an earlier choice.
Last reviewed September 12, 2026
CookieWall exposes a small browser API after an active configuration loads. Your website should provide an easy-to-find Privacy settings or Cookie settings control that reopens the dialog.
Reopen the consent interface
document.querySelector("#privacy-settings")?.addEventListener("click", () => {
window.CellWallConsent?.showDialog();
});Test withdrawal
- 1.
Accept an optional category
Use a clean browser profile and accept Analytics, Marketing, or Functional.
- 2.
Open privacy settings
Use your site-provided control and confirm that the dialog opens without clearing browser storage.
- 3.
Disable the category and save
Confirm the new preference is stored, the update event fires, and the corresponding native platform receives the updated signal.
- 4.
Verify browser behavior
After any configured reload, confirm that activity in the withdrawn category no longer runs unless it is intentionally governed through a native consent-mode integration.