Blocking cookies

This guide will explain how to actually block cookies.

A COMPLETER

To effectively block cookies, there are several possible methods: blocking a snippet, custom javascript or Google Tag Manage.

Go to the service management interface, when editing a service, the simplified name (slug) of the service appears below the cookie name.

Blocking a code snippet in the page

This method allows you to completely disable a code snippet for tracking the page.

To do this, replace the following code snippet in the html code of your page:

<script >
  alert("hello, I'm a tracking javascript tag");
</script>

By:

<script data-consent="{your-service-slug}" type="dastra/script">
   alert("hello, I'm a tracking javascript tag");
</script>

Replace the "{your-service-slug}" with your service id entered when configuring your widget:

Dernière mise à jour