Usercentrics - PUBLIC

Usercentrics + Wix Integration Guide

Part 1: Install Usercentrics CMP v2 manually to your WIX website

  1. Log into your WIX accountĀ 

2. Go to Ā ā€œWebsiteā€ and then ā€œSettingsā€ and then under ā€œAdvancedā€ continue to ā€œCustom Codeā€.

3.Under the ā€œHeadā€ section of ā€œCustom Codeā€ click ā€œAdd Codeā€.Ā 

4. Enter your usercentrics Script-Tag under the ā€œCode Snippetā€ section. Under ā€œAdd Code to Pagesā€ select ā€œAll Pagesā€ and the sub-selection ā€œLoad Code Onceā€.

5. Under ā€œwhatā€™s the purpose of this codeā€ select ā€œEssentialā€.

6. When finished, select ā€œApplyā€. You will then be taken back to the ā€œCustom Codeā€ page where you can confirm your Script-Tag is added to the ā€œHeadā€ section.

Ā 

Ā 

In your Settings dashboard you can find your personal script with your Settings-ID under ā€žImplementationā€œ (CMP v2).

Code for CMP Version 2

<script id="usercentrics-cmp" data-settings-id="XXXXXXXX" src="https://app.usercentrics.eu/browser-ui/latest/loader.js" async></script>

Copy your unique script from the Admin Interface under Implementation or replace ā€œXXXXXXXXXā€ with your personal Settings-ID in the above relevant code example.

7. Click ā€œSaveā€

Ā 

Part 2: Blocking third party services

Third party services must be blocked before a user gives consent, such as Google Analytics. Use your DPS Scanner to find out which third parties you have and block third party services until a user gives consent. Here is the guide to block third party services manually. Usercentrics Documentation

For automatically blocking various supported third party technologies, you can also use our Smart Data Protector - see here for more information and all supported technologies. Usercentrics Documentation

Ā 

Example: Google Analytics

Step 1: Add Google Analytics Code to WIX

Add your Google Analytics code to your WIX pages by going to ā€œWebsiteā€, ā€œSettingsā€,Ā and then under ā€œAdvancedā€Ā continue to ā€œCustom Codeā€.Ā 

Under the ā€œHeadā€Ā section of ā€œCustom Codeā€Ā click ā€œAdd Codeā€. Here you will paste your unique Google Analytics code under the HTML section.Ā 

Be sure to select ā€œAll pagesā€and the sub-selection ā€œLoad Code Onceā€. Select ā€œEssentialsā€ for code purpose. Additionally select ā€œEssentialsā€ for the purpose. Select ā€œApplyā€ when finished.

Step 2: Adjust the Existing Google Analytics Script

Once the Usercentrics script has been integrated into your website, all existing scripts need to be customized. This step is mandatory to ensure scripts are only executed after a consent has been given.

Change script type ā€“ ā€œtext/javascriptā€ becomes ā€œtext/plainā€

To customize your scripts, two small adjustments are necessary. The first one refers to the script type. Change the type from type="text/javascript" to type="text/plain" in your scripts.

If your script does not explicitly specify type="text/javascript" as it can be interpreted by the browser without naming it, you still have to adjust it to type="text/plain".

This adjustment is mandatory to ensure the script is not automatically interpreted and executed by the browser when the page is called.

Assign a data attribute

The scripts of the data processing services that youā€˜re using need to be given a custom data attribute. It is used to connect to our Consent Management Platform and to query consents.

The syntax of this data attribute is data-usercentrics="Name Data Processing Service", where ā€œName Data Processing Serviceā€ corresponds to the exact name of the Data Processing Services you created in your Settings dashboard under ā€œData Processing Servicesā€œ.

As an example, we're going to adjust the Google Analytics script.

Here is the original script:

Once adjusted, it becomes:

From now on, upon page load, the Google Analytics script will only be executed if your visitor has given consent to Google Analytics.

āš ļø Note: If a user revokes consent after a service was already loaded, then you must ensure the service is disabled or not used anymore. For example, you can force a page reload which will stop data processing services without consent from being executed.Ā 

Repeat the steps above for any otherĀ  party services you have.Ā 

Ā 

For questions about third party services using Google Tag Manager, please see our documentation here

Do you need further help?

How can I get help with questions on the Usercentrics CMP?

Ā 

Usercentrics - PUBLIC