| Name | Type | Gzipped |
|---|---|---|
| cb.js | script | 14 KB |
| config | fetch | 2 KB |
| 2 requests · 16 KB gzipped | ||
14 KB
banner snippet, gzipped
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.
| Name | Type | Gzipped |
|---|---|---|
| cb.js | script | 14 KB |
| config | fetch | 2 KB |
| 2 requests · 16 KB gzipped | ||
14 KB
banner snippet, gzipped
36
banner languages
1 click
to reject, the same as to accept
No IP addresses
in the consent log
<script
src="http://cookierule.com/cb.js"
data-domain="YOUR_SITE_ID"></script>
One script tag at the top of the head on every page, before your other scripts. No build step.
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.
Your wording and colors, in the visitor's language. Scripts you tag wait until the visitor allows them.
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.
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 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.
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.
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.
EDPB cookie banner taskforce
Reject All and Accept All have the same color, size, and weight on every banner. This cannot be turned off.
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.
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.
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.
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.
| 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 | 6 months |
| 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 |
| Name | Type | Provider | Purpose | Expiry |
|---|---|---|---|---|
| _ga | Cookie | Google Analytics | Distinguishes unique visitors. | 2 years |
| Name | Type | Provider | Purpose | Expiry |
|---|---|---|---|---|
| NID | Cookie | 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 |
Unlimited pageviews on every plan, and a banner that never switches off. All prices in EUR, VAT included.
Compare All PlansIf 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.