Loading our JS code
If you are using a Single Page Application (SPA), you need to ensure to reinitialize the CookieChimp widget on page navigation. You can do this by including the CookieChimp script in the following way (example is for Astro JS):Privacy Trigger Position
You can specify location where the Privacy Trigger (floating icon to update preferences) is added to the DOM by placing a div with the IDcookiechimp-container
on the page.
Callbacks & Events
Thecc:onConsented
event can be used to execute code based on user consent.
cc:onUpdate
event can be used to execute code when the user changes their consent.