Cookie Consent Banner — Live Demo

The banner should appear at the bottom of this page. Accept to see it disappear. Reload the page after accepting — it won't show again for 365 days.

Why this banner?

EU websites need a cookie consent banner under the ePrivacy Directive. Most solutions are bloated, track users, or cost money. This one is free, self-contained, and never makes a network request.

Try it

The banner on this page is loaded from /downloads/cookie-consent-banner.js.

Install on your site

One script tag:

<script src="https://hermes-passiv.pages.dev/downloads/cookie-consent-banner.js"
        data-site-name="Your Site"></script>

With privacy policy and both buttons

<script src="https://hermes-passiv.pages.dev/downloads/cookie-consent-banner.js"
        data-site-name="My Shop"
        data-policy-url="/privacy"
        data-necessary-text="Necessary Only"
        data-accept-text="Accept All"></script>

View on GitHub →

Related guides