Cookiebot can be used with the content management platform Wix (www.wix.com) as described below.
Wix recommends that you use Google Tag Manager (GTM) to install Cookiebot in two steps:
Please note: Due to the current technical limitations of Wix, it may not be possible to implement Cookiebot to be fully compliant with the requirements of the ePrivacy Directive and the GDPR regarding prior consent (see below about prior consent).
DEPRECATED!
The guide below is deprecated as Wix recommends that you use Google Tag Manager (GTM) to install Cookiebot as described above.
1. Implementing the Cookiebot consent dialog (cookie consent banner) with Wix:
1. In the Admin Panel select Manage Website from the menu panel on the left, then choose Tracking & Analytics, click the + New Tool button which is placed at the top right corner of the Tracking & Analytics section and select Custom from the dropdown:
2. In the code snippet field paste the Cookiebot consent dialog script:
<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="00000000-0000-0000-0000-000000000000" type="text/javascript" async></script>
Replace the zeroes with the cbid number from the domain group where the domain is added. It is available from the 'Your scripts' tab on your Cookiebot account.
3. When the script is added, it can be selected which pages to add your code to and if the code should be loaded once or loaded on each new page.
4. Select where the script should be added, e.g. Head section of the website.
5. Click Apply, then Save and Publish the website.
2. Implementing prior consent in Wix:
To enable prior consent (block cookies until user has consented), the attribute "data-cookieconsent" must be applied to the script (see example below). Set the comma-separated value to one or more of the cookie categories "preferences", "statistics" and "marketing" in accordance with the types of cookies being set by each script. Finally change the attribute "type" from "text/javascript" to "text/plain".
Prior consent on Google Analytics:
In Wix, Google Analytics can be added just by using Tracking ID (without using the Google Analytics script). In this way, however, it is not possible to change the script attribute "type" from "text/javascript" to "text/plain" and to add the attribute "data-cookieconsent" regarding the cookie categories.
Therefore, to properly implement prior consent, the Google Analytics script should be added using “Custom Tool” instead of “Google Analytics”.
In the Admin Panel select Manage Website from the menu panel on the left, then choose Tracking & Analytics and select Custom.
Add the script into the text field and choose on which pages to load it and where to place it.
When using Google Analytics, make the following change to the code:
<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-00000000-0', 'auto');
ga('send', 'pageview');
</script>
Becomes (highlighted in bold):
<script type="text/plain" data-cookieconsent="statistics">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-00000000-0', 'auto');
ga('send', 'pageview');
</script>
Prior consent on iframe videos:
In the Admin Panel select Edit Site from the bottom left corner, choose Add and click More, then from the Embeds section select HTML iframe.
When the HTML iframe is added, click Enter Code and add the script into the field. To implement prior consent, change the original iframe tag e.g.
<iframe src="https://www.youtube.com/embed/xxxxxxxxxxx" frameborder="0" allowfullscreen></iframe>
to the following (rename 'src' to 'data-src' and apply the data-cookieconsent-attribute to the tag):
<iframe data-src="https://www.youtube.com/embed/xxxxxxxxxxx"data-cookieconsent="marketing"frameborder="0" allowfullscreen></iframe>
For more information please also see Iframe cookie consent with YouTube example.
Please note that if you are making use of plugins or apps from the Wix App Market - and if these are setting cookies and trackers - then you may not be able to fully implement prior consent on your Wix website. In that case, please reach out to the developer of the app(s) you are using and enquire about how they can help you become GDPR and ePR compliant.
3. Implementing the Cookie Declaration in Wix:
To show the Cookie Declaration on your website (on a new page or e.g. as part of your existing privacy policy), do the following:
- In the Admin Panel, select Edit Site. Then choose Menu & Pages from the menu.
- Click on Add Page or choose an existing one (where you would like to implement the Cookie Declaration). If you create a new page, then click Save and Publish.
- From the top menu click Settings and select Tracking & Analytics from the dropdown.
- Select Custom tool
- Into Custom Code paste the Cookiebot Cookie Declaration script and choose on which page you want to display it.
<script id="CookieDeclaration" src="https://consent.cookiebot.com/00000000-0000-0000-0000-000000000000/cd.js" type="text/javascript" async></script>
Replace the zeroes with the cbid number from the domain group where the domain is added. It is available from the 'Your scripts' tab on your Cookiebot account.
- When complete, click Apply, then Save and Publish.
Last updated: 22 June 2018
Comments
14 comments
Hi,
It may be that I'm running a newer version of the Wix platform for some reason, but I cannot configure the the html/iframe app in the way instructed here. What I've managed to do is add a "custom script" for the Cookiebot banner, and this works fine. I've also managed to add the cookie declaration on a separate page, using a slightly different version of what you instructed here. However, I cannot get the "Change my consent" link to work. My guess is that since the banner script is running in the actual website code and the cookie declaration is running in a iframe the variables that both scripts exchange are not being passed between them. In theory this should be possible using Wix Code, but knowing what to pass in between the container and the frame is something maybe you're more capable of helping with?
Also, Wix supports google analytics out of the box with only the tracking ID, but if you add GA as another custom script you can add the prior consent, at least for GA.
In any case, do you think you can help in any way with the "Change Consent" link? I think Wix will probably address this somehow in the future, but I'm not sure when that'll be.
Same as Roberto, can anyone please support with the cookie declaration?
Hello Roberto and Marco - please check the update we have made to the Wix implementation guide above!
Hello,
Correct me if I'm wrong, but this still doesn't address the consent management in the cookie declaration does it? I mean this solution may work if the privacy policy has absolutely no format, how would you choose where to insert the declaration into the privacy policy page? the html iframe still does not work I assume?
HI, confirming as per Roberto.
I tried to install the Declaration script as per new instructions.
In Wix > Settings > Tracking & Analytics, I tried to set the script to load within the body (both beginning and end).
I could see the Change Consent link appearing, however the visualisation of the page was distorted: the script loaded above the menu/header of the page (when set to beginning of the body in Wix settings) or below the footer (when set to the end of the body in Wix settings).
Note: I had to revert back due to the issue above, installing the script within the iFrame, but you can see the Change Consent link does not appear.
The iFrame would be the preferred option as I can control where to set it in the page.
Could you please advise?
Thanks
Also having an issue with installation. While the banner can be installed via the Tracking & Analytics panel, it absolutely doesn't work for the declaration page. Only the last view rows of the page appear when inserting into the body.
I tried installing in an iframe, which I agree is nicer since I can control placement, size, style, etc. However, the "CookieDeclarationUserStatusPanel" and its contents are set to "display: none". Not sure why this would be intentional. But removing "display: none" from the div would instantly solve any issues for me. I'd like to see it work on one site before I deploy to the rest of my clients.
I'm leaving it as is and published at makanal.eu/cookies so you can see it in use.
Having issues with the "Cookies Declaration" part too. Tried to follow the guidelines on this page, without success. Pasting the <script...> code in an iFrame gives 404 -Not Found on the page.
For testing purposes, I added some text before the <script...> in the iFrame. This resulted in:
"some text
Error: The domain WWW-SWIM-R-EU.FILESUSR.COM is not authorized to show the cookie declaration. Please add it in the cookie manager to authorize the domain."
The domain on which the WIX site is published is www.swim-r.eu, so I don't know where www-swim-r-eu.filesusr.com comes from.
When implementing the Cookie Declaration as documented in the guidelines, the content is shown when the page loads, but it disappears immediately. When you resize the window, you see the Cookie Declaration text but it disappears when the window is resized.
Has someone managed to get this thing working?
Hi Philip,
Could you please check if the described problem is related to the domain or the Cookie Declaration itself in order to know what exactly is the issue.
You could check this link out: https://support.cookiebot.com/hc/en-us/articles/360006284114-Error-The-domain-is-not-authorized-to-show-the-cookie-declaration-Please-add-it-in-the-cookie-manager-to-authorize-the-domain- about the error that your domain is not authorized. Afterwards if you still have problems with the domain and Cookie Declaration please do not hesitate to contact us, so we can investigate further and help you solve the issue afterwards.
Regards,
Spas
Hi,
Thanks for the follow up. I found out that when you use the Wix iFrame component, the error is related to a domain that is not authorised. In my case Wix adds "fileusr.com" -> WWW-SWIM-R-EU.FILESUSR.COM.
Therefore, I chose not to use the iFrame anymore and add a new page and follow the steps as documented in "1. Implementing the Cookiebot consent dialog (cookie consent banner) with Wix:" on this page. This implementation doesn't cause any errors, but the content is only shown for a very small amount of time. Check this page: https://www.swim-r.eu/privacy-policy and drag the right side of the window fast to left and right. You'll see the text appearing and disappearing immediately.
Thanks for looking into this.
Hi Philip,
Thank you about your feedback, I will investigate the issue that you have reported and get back to you as soon as possible.
I just need to make sure if the problem occurs from the Cookie Declaration itself or there is something wrong with the Wix integration of the script, so I could help you solve the problem afterwards instead of guessing.
Regards,
Spas
Hi Spas,
Any updates on this issue?
Regards,
Philip
Hi, just bumped into this post: https://www.wix.com/code/home/forum/community-discussion/gdpr-compliant-cookiebar-how-to-implement-in-wix
The last comment says: https://support.wix.com/en/article/request-allowing-site-visitors-to-opt-in-or-out-of-cookies
Does this mean that the "Cookie declaration" functionality will not work?
Hi Philip,
I think that the last comment that you mentioned above is regarding Wix itself, not about Cookiebot.
However, we made tests of cookiebot implementation in Wix and everything seems fine. The implementation guide and the user guide that you have mentioned above (first link in your comment) are both correct.
I believe that the issue Wix related and you should contact their support to find a solution. We could not give you a guidance and guarantee you that it will work when everything is done right, but still does not work.
Hope this will help you solve your issue.
Regards,
Spas
Hello,
I maintains many wix websites. I followed the procedure but it does not work.
The cookies content banner does not appear. Why ?
Please sign in to leave a comment.