Restrict banner to be shown on one domain only

Visual website page editors are a popular tool for website editing. They usually work by showing the live site and making an editing overlay on top of that. 

This might be a problem if your website has a consent popup, especially one that is shown as an overlay, covering the whole page. 

Usually, visual editors are hosted either on a different domain (in the case of popular website builders) or on a subdomain (like editor.example.com). 

In this case, you can add an attribute to an inserted code snippet, this will restrict the banner to be shown on the live site only and not show the banner on the editor page. 

Attribute to be added:  data-cs-restrict-domain="true"

The whole code snippet would look like this:

<script type="text/javascript" charset="UTF-8" src="//cdn.cookie-script.com/s/515bedd202f6c7de8714223de9a322c6.js" data-cs-restrict-domain="true"></script>

You can also use this attribute to restrict the banner display to the main domain only if this is required by your setup.

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