CookieRule
Built for GDPR and ePrivacy

Cookie consent you set up once

One script tag. CookieRule shows a cookie consent banner in 36 languages, holds back tracking scripts until visitors allow them, scans your site for cookies, and logs every choice.

Free for one website. No card needed.
example.com
Live demo
Choose an option in the banner above.
Analytics script Blocked
Ads script Blocked
analytics_storage denied
ad_storage denied

Light and Fair by Default

What the banner loads
Name Type Gzipped
cb.js script 14 KB
config fetch 2 KB
2 requests · 16 KB gzipped

14 KB

banner snippet, gzipped

Snippet size

1 click

to reject, the same as to accept

Banner design

No IP addresses

in the consent log

Consent log

Set Up in Three Steps

Your page head
Copied
<script
  src="http://cookierule.com/cb.js"
  data-domain="YOUR_SITE_ID"></script>
  1. Paste the Snippet

    One script tag at the top of the head on every page, before your other scripts. No build step.

  2. A Real Browser Scans Your Site

    The cookie scanner visits your pages and lists the cookies, storage, and third-party requests it finds. Free accounts rescan every 30 days, up to 25 pages.

  3. Visitors Get the Banner

    Your wording and colors, in the visitor's language. Scripts you tag wait until the visitor allows them.

A Banner That Looks Like Your Site

example.com
Site color
  • Follows Your Site's Theme

    Auto, the default theme, makes the banner light or dark to match your page. When a visitor uses your site's theme switch, the banner changes with it. On a page with no background color of its own, it follows the visitor's device setting.

  • Takes Your Site's Colors

    Match My Website reads your site's buttons, background, and text, and fills in the banner colors in one click. Check them in the preview, then save.

  • Box, Bar, or Modal

    Box floats in a corner or the center, Bar runs along the bottom, and Modal is a cookie consent popup over a dimmed page. Design it as you would in a cookie banner generator and paste the snippet once: later changes reach your visitors within a few minutes.

  • Banner design

What the Law Asks of a Cookie Banner

No cookie consent tool makes a website compliant by itself. These are the parts a GDPR cookie banner needs, and what CookieRule does about each.

  • No Tracking Before Consent

    ePrivacy Directive, Art. 5(3)

    Scripts and iframes you tag, and known vendors such as Google Analytics and Meta Pixel, wait for the visitor's choice. Google Consent Mode v2 starts with every signal denied.

  • Refusing as Easy as Agreeing

    EDPB cookie banner taskforce

    Reject All and Accept All have the same color, size, and weight on every banner. This cannot be turned off.

  • Proof That Consent Was Given

    GDPR, Art. 7(1)

    Each choice is logged with its time, region, rules, and banner version, with no IP address and no visitor ID. A hash chain makes edits detectable within CookieRule's systems.

  • Withdrawing at Any Time

    GDPR, Art. 7(3)

    A link on your site can reopen the banner for visitors to withdraw their GDPR cookie consent, and a withdrawal is recorded like any other choice.

  • When Something Fails

    CookieRule's own rule

    If the snippet cannot load your settings, no optional script runs and every category except Necessary stays denied. Visitors are never treated as having agreed.

  • Usable by Everyone

    CookieRule's own rule

    Works with a keyboard and screen readers: every control is labeled and shows a focus ring, and the modal layout keeps focus inside the banner.

Cookie Scanner, Declaration and Consent Log

Name Found on Category Vendor Retention
__cf_bm Cookie juniperandrye.example Necessary Our classification Cloudflare 30 minutes
__stripe_mid Cookie juniperandrye.example Necessary Our classification Stripe 1 year
_ga Cookie Set only after consent juniperandrye.example Statistics Our classification Google Analytics 2 years
jr_basket Cookie Seen on a visit, not yet confirmed by a scan juniperandrye.example Yours to classify - -
NID Cookie Set only after consent juniperandrye.example Set by .google.com Marketing Our classification Google 6 months
Necessary 2
Name Type Provider Purpose Expiry
__cf_bm Cookie Cloudflare Tells bots and humans apart. 30 minutes
__stripe_mid Cookie Stripe Helps spot fraud at checkout. 1 year
Statistics 1
Name Type Provider Purpose Expiry
_ga Cookie Google Analytics Distinguishes unique visitors. 2 years
Marketing 1
Name Type Provider Purpose Expiry
NID Cookie Google Stores advertising preferences. 6 months
When Choice Allowed Rules Record
14 Oct 09:41:12 Accepted all Necessary Preferences Statistics Marketing eu / opt-in 687059f9
14 Oct 09:22:03 Custom Necessary Statistics uk / opt-in 6c718885
14 Oct 08:57:40 Rejected GPC Necessary us / opt-out c1987f8a
13 Oct 17:15:26 Withdrawn Necessary eu / opt-in 671772b4

Pick the Plan That Fits Your Sites

Unlimited pageviews on every plan, and a banner that never switches off. All prices in EUR, VAT included.

CookieRule Plans

Free

€0 forever
Get started
  • 1 website
  • Up to 25 pages per scan
  • Monthly cookie scans
  • 30-day consent log
  • Unlimited monthly pageviews

Starter

€8.99 /month
Get Starter
  • 3 websites
  • Up to 100 pages per scan
  • Weekly cookie scans
  • 1-year consent log
  • Consent log export
  • Custom logo
  • Unlimited monthly pageviews

Business

€58.99 /month
Get Business
  • 50 websites
  • Up to 250 pages per scan
  • Daily cookie scans
  • Unlimited consent log history
  • Consent log export
  • Consent log integrity check
  • Custom logo
  • Remove CookieRule branding
  • Unlimited monthly pageviews

14-day money-back guarantee

All prices include VAT.

Compare All Plans

Frequently Asked Questions

If your site sets cookies or similar storage that are not strictly necessary, such as analytics, advertising, or embedded videos, EU and UK rules ask for the visitor's consent before they run. Cookies a site needs to work, such as a login or a shopping cart, do not need consent. CookieRule's scan lists what your site sets, so you can see which case you are in.

With a cookie scanner. In CookieRule, the scan is a cookie checker for your own site: a real browser visits your pages and lists the cookies, storage, and third-party requests it finds. The free plan scans up to 25 pages every 30 days, and paid plans rescan weekly or daily. A cookie your own site sets that CookieRule does not recognize shows as Yours to classify, so you can give it a category.

Not in the EU or the UK. A cookie notice only tells visitors that the site uses cookies, while those rules ask for consent before non-essential cookies run. In the United States, the CCPA asks instead for a way to opt out of the sale or sharing of personal data, so by default CookieRule shows US visitors a CCPA cookie banner with a Do Not Sell or Share link.

Cookie compliance depends on how your whole site uses cookies, so no tool makes a website compliant by itself, whether it's a free cookie banner or a paid one. CookieRule gives you the parts GDPR cookie consent asks for, on the free plan too: a banner where rejecting is as easy as accepting, choices by category, Google Consent Mode v2 signals, a cookie declaration, and a record of each choice.

A consent management platform, or CMP, is the cookie consent manager of a website: it asks visitors for consent, stores each choice, and makes scripts wait for it. CookieRule is a CMP that runs from one script tag. It does not implement IAB TCF.

Create a free account, add your website, and paste the script tag CookieRule gives you at the top of the head on every page, before your other scripts. It works on any site where you can edit the HTML head, with no build step, and the first scan starts within minutes.

Very little. The snippet is one file of about 14 KB gzipped, with no fonts and no framework. It makes one request per page view for your banner settings, and the banner floats above your page, so it causes no layout shift.

Consent Mode v2 is how Google's tags learn each visitor's choice. If you use Google Ads or Google Analytics with visitors in the EEA, Google asks for these signals before it uses their data for ad personalization and remarketing. CookieRule sets every signal to denied before any Google tag runs and sends an update with each choice, with no tag manager work.

No. CookieRule blocks scripts, not cookies: scripts you tag, and scripts from known vendors. A cookie it does not recognize is listed as unclassified in your declaration until you tag the script that sets it.

A free account covers one website, scans up to 25 pages every 30 days, and shows the last 30 days of the consent log. The CookieRule badge stays on the banner.

Read the Docs