Go Headless

Changelog

Build Apps
Get Started
Overview
Quick Start
Templates
Tutorials
What's New
Get an Idea

Develop Your App
About Developing Apps
App Dashboard Setup
Frameworks
Extensions
Wix Business Solutions
API Integrations
AI
Access
Design

Launch Your App
About Launching Apps
Pricing and Billing
Market Listing
Localization
Legal and Security
GDPR Compliance
Wix Terms of Use Policy
Wix App Market Partner Agreement
Security and Privacy Best Practice
About Consent Apps
App Distribution
App Promotion

Manage Your App
User Support
Versioning
Data and Analytics
Contact Us
In This Article

  1. Managing consent policies
  2. Example use cases
  3. Request uninstallation handling from Wix
  4. See also

About Consent Apps

This article is a comprehensive guide for consent app creators that explains everything you need to know about managing consent policies on Wix sites.

Only 1 consent app should be installed on a site at a time to avoid conflicting changes to consent settings. Make sure you convey this to your users.

Before you read this article, make sure you're familiar with the GDPR and the cookie consent requirements that Wix apps must implement. For information on these topics, see About GDPR and Data Protection Compliance.

Managing consent policies

There are 2 types of consent policies to be aware of when developing a consent app:

  • Visitor consent policies
  • Default consent policies

Visitor consent policies

Every visitor to a Wix site has their own visitor consent policy that defines what types of cookies and related technologies they allow.

Visitor consent policies can be managed using the Consent Policy API.

Default consent policies

When a visitor first arrives on the site, their visitor consent policy is configured to match the site's default consent policy.

Every site's default consent policy initially allows all types of cookies and related technologies. You can manage a site's default consent policy using the Site Properties API.

Example use cases

Managing visitor consent in a cookie consent banner

You're developing an app that adds a cookie consent banner to a site. When the visitor chooses their consent settings in the banner, you call setConsentPolicy() to update their policy with their chosen settings.

Implementation examples

Basic consent banner HTML fragment for an embedded script using the Consent Policy Manager API
Copy
Basic consent banner React component using the Consent Policy Manager API
Copy

Managing the default site consent policy in a cookie consent banner

You're developing an app with a cookie consent banner. When a user installs and activates your app, you want to block all types of cookies and related technologies until the visitor specifically consents to them via your banner. To do this, you configure a dashboard page where the user can activate your banner. When they activate it, you call updateConsentPolicy() with all consentPolicy types except essential set to false. If they deactivate your banner, you call updateConsentPolicy() again to reset the default site consent policy to allow all types.

Implementation examples

The following are examples of functions you could implement to enable or disable a consent banner, such as in a dashboard page in your app.

Javascript SDK backend implementation example
Copy
REST API implementation example
Copy

Request uninstallation handling from Wix

When your app is uninstalled, the default site consent policy should be reset to its original state so that your app's changes don't continue to affect the user.

Apps that modify the policy need to share their app ID with the Wix team for uninstall flow handling so that Wix can remove your settings. Use the Wix Support Chatbot and mention:

"I have a cookie consent app that needs to be added to the list of apps that will update the default policy in case they're deleted."

This ensures that when your app gets uninstalled, Wix automatically resets the default policy to allow all types so users don't get stuck with a restrictive policy and no way to manage consent.

You may also want to manually revert these settings if users can disable the functionality of your app in your app settings. For example, if your app adds a cookie consent banner and the user turns it off.

See also

  • Consent Policy API - SDK
  • Site Properties API - SDK
  • Site Properties API - REST
  • GDPR Compliance Guidelines
  • CCPA Information
Did this help?