Revision management
You can enable the revision management if you need to refresh the consent due to a change your cookie/privacy policy.
revision
number (default = 0)
Enable revisions
To enable revisions, you just need to specify a valid revision
number in your configuration:
javascript
cc.run({
revision: 1
});
Note
The new revision number must be different from the current revision number.
Once enabled, users who had already consented to revision 0, will be prompted again for consent.
Revision message
Optionally, you can also set a revision message to let your users know what has changed since the last time they visited.
- Add a
revisionMessage
field insideconsentModal
- Specify the
{{revisionMessage}}
placeholder insideconsentModal.description
javascript
cc.run({
revision: 1,
language: {
// ...
translations: {
en: {
consentModal: {
description: 'Modal description. <br> {{revisionMessage}}',
revisionMessage: "Hi, we've made some changes to our cookie policy since the last time you visited!",
// ...
},
// ...
}
}
}
});