Customise the user’s experience programmatically.
cc:onFirstConsent
cc:onConsented
onFirstConsent
— but also on every subsequent page load.
cc:onUpdate
cc:onModalShow
cc:onModalHide
cc:onModalReady
show
true
to generate it on the fly.
hide
showPreferences
hidePreferences
acceptCategory
acceptedCategory
true
if the specified category was accepted, otherwise false
.
acceptService
acceptedService
true
if the specified service was accepted, otherwise false
.
validConsent
true
if consent is valid.
Consent is NOT valid when at least one of following situations occurs:
getUserPreferences
function(): object
'all'
'custom'
'necessary'
reset
true
to delete CookieChimp’s cookie which holds the user’s consent & preferences. The user will be prompted again to express their consent.