About Cookie Banner Settings
Wix enables site owners to add a cookie banner to their site that informs visitors how their cookies are being used and prompts them to provide consent for non-essential cookie types and scripts (for example, Functional, Advertising and Analytics).
The Cookie Banner Settings API allows you to manage the following cookie banner settings on a site:
enabled
: Whether the cookie banner is displayed.theme
: Choose from light, dark, or custom themes.texts
: Text displayed in the banner. See Banner texts default values for details.revisitSettingsConfig
: Whether to display a Revisit button that enables visitors to go back and change their choices.declineAllConfig
: Whether to display a Decline all button.privacyPolicyPageInfo
: A link to a page on the Wix site or to an external URL where the privacy policy can be reviewed.revisitSettingsConfig
: Whether to display a button that enables visitors to go back and change their choices.
Banner text default values
The following table lists all cookie banner text keys and their default values. Using the API, you can change any of these texts to values of your choice:
Key | Default value |
---|---|
accept.cookies.button | Accept |
advanced.category.analytics.headline | Enable Analytics Cookies |
advanced.category.analytics.paragraph | These cookies help us to understand how visitors interact with our website, discover errors and provide a better overall analytics. |
advanced.category.essential.headline | Essential Cookies |
advanced.category.essential.paragraph | These cookies enable core functionality such as security, verification of identity and network management. These cookies can’t be disabled. |
advanced.category.functional.headline | Enable Functional Cookies |
advanced.category.functional.paragraph | These cookies collect data to remember choices users make to improve and give a more personalised experience. |
advanced.category.marketing.headline | Enable Marketing Cookies |
advanced.category.marketing.paragraph | These cookies are used to track advertising effectiveness to provide a more relevant service and deliver better ads to suit your interests. |
decline.all.button | Decline All |
display.save.default | Save |
open.settings.button | Settings |
policy.banner.text | We use cookies on our website to see how you interact with it. By accepting, you agree to our use of such cookies. |
policy.external.url | " " |
revisit.settings.text | Cookie settings |
view.privacy.policy | Privacy Policy |
Before you begin
It’s important to note the following points before starting to code:
- Wix automatically recognizes which types of cookies require consent for a given site. While you can manage the text displayed for each, you can't change the list of consent types displayed to site visitors using the API.
Use cases
Terminology
- Cookie banner: A visual notification on a site that notifies visitors how cookies are being used and allows them to provide or decline consent for non-essential cookies.
- Revisit: When a site visitor reopens the banner to change their initial consent choices.
Was this helpful?
Yes
No