How can visitors reopen preferences or withdraw consent?
After the banner closes, what should I link in the footer so visitors can change or withdraw their consent later?
After the banner closes, what should I link in the footer so visitors can change or withdraw their consent later?
Community posts reflect their authors' views and may be incomplete or outdated. They are not legal advice or official product documentation. Verify product behavior in the current documentation and consult qualified counsel about requirements that apply to your site.
Add a “Consent preferences” link and dispatch the optinstack:open-preferences event when it is activated:
await window.OptinStack.ready;
window.dispatchEvent(new CustomEvent('optinstack:open-preferences', { bubbles: true }));This opens the preferences dialog for variants that support preferences. Informational banners do not have that dialog. You can also render the OptinStack Tracker declaration widget, which reflects the published inventory and can expose preferences or withdrawal controls when supported by the active banner UI.
Documentation: Open preferences and Tracker declaration widget.