Sitejet's Cookie Consent Bar

In this article, you will learn everything about Sitejet's integrated Cookie Consent Bar. 

Table of contents


How to add the Cookie Consent Bar

The Cookie Consent Bar is a native solution from Sitejet that will block all third-party JavaScript until the visitor clicks the button to accept cookies. To add the Cookie Consent Bar go to Add content > Presets > Legal/GDPR and drag and drop the Preset into the website.

Please note that the Cookie Consent Bar will only be added to the site that you are currently working on. To ensure that it will be visible on all sub pages we recommend adding the Cookie Consent Bar to the website's footer and using references.


Whitelist

If you want to exclude specific third party widgets from being blocked, you can add them to the whitelist by adding the following code to your meta tags in the website settings:

<script>!function(w,s,b){Array.isArray(w[s])&&w[s].push(b)}(window,'YETT_WHITELIST',/THIRD-PARTY-DOMAIN/)</script>

You need to replace THIRD-PARTY-DOMAIN by the domain name (or file name) of your third party script, for example:

<script>!function(w,s,b){Array.isArray(w[s])&&w[s].push(b)}(window,'YETT_WHITELIST',/third-party.com/)</script>

You can also define multiple URLs using |

<script>!function(w,s,b){Array.isArray(w[s])&&w[s].push(b)}(window,'YETT_WHITELIST',/third-party.com|script-name.js/)</script>

or simply use keywords, for example to unblock the Ecwid shop:

<script>!function(w,s,b){Array.isArray(w[s])&&w[s].push(b)}(window,'YETT_WHITELIST',/shopsettings|storefront|ecomm|ecwid|new-frontend/)</script>

Become a part of our Community!

Exchange ideas with other web designers about current developments, tips, and tricks and show your favorite sites. Get advice and talk to us about possible features you would like to see on Sitejet. You can join the Sitejetters community here.

Back to the top

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us