How can we help?

Sitejet's Cookie Consent Bar

Franziska Dienst
Franziska Dienst
  • Updated

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


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 click on the "Features" category in the left sidebar and drag and drop the Cookie Consent Bar 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,a,i){w[a]=w[a]||[];w[a].push(i)})(window,'YETT_WHITELIST',/ecwid|storefront|ecomm|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

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.