This article provides a brief overview on how to easily add a JavaScript-based cookie banner to your storefront.
Caution
This cookie banner solution is a technical example used for demonstration purposes only. It might not be sufficient for specific countries. Please follow the cookie law regulations of your country.
A JavaScript-based cookie banner:
The following steps are a fast and easy possibility to add a cookie banner to your storefront.
Please note that the following steps are just a quick sample on how to implement the banner to your storefront. If you want to customize or self-host your banner you may follow the steps from the linked GitHub page.
Copy the following code to the segment properties:
<script type="text/javascript" id="cookiebanner" src="https://cdn.jsdelivr.net/gh/dobarkod/cookie-banner@1.2.2/dist/cookiebanner.min.js" data-height="50px" data-position="top" data-message="We use cookies to improve your browsing experience."> </script>
Save your changes and customize if necessary: