Cookie policy template

List the cookies your site sets, filed under the groups your banner offers, and get a cookie policy that says what each one does, who uses it and how long it stays: with the EU consent and withdrawal wording, and California’s opt-out paragraph when an ad cookie counts as “sharing”. It also tells you which switches your banner needs. Print it or copy it as text, Markdown or HTML; it runs in your browser.

Photocopy-style paste-up of a printed browser window with a long ruled page of black bars pulled from it

The rule behind each line

Storing or reading on a device
consent, after clear and comprehensive information, ePrivacy Art. 5(3)
No consent needed
only what is strictly necessary for a service the user explicitly asked for, Art. 5(3)
What to tell people
purposes, recipients, how long, the right to withdraw, GDPR Art. 13(1)–(2)
Withdrawing
at any time, as easy as giving consent, GDPR Art. 7(3)
The cookie list
the site owner keeps it and can show each "essential" cookie is essential, EDPB taskforce ¶ 28
A way back in
an icon or a link in a visible, standard place, EDPB taskforce ¶ 32
Legitimate interests
not a legal basis for placing or reading cookies, EDPB taskforce ¶ 24
California "sharing"
data made available for cross-context behavioral advertising, money or not, § 1798.140(ah)(1)
Opt-out link
"Do Not Sell or Share My Personal Information", § 1798.135(a)(1), or "Your Privacy Choices", regs § 7015(b)
Opt-out signals
still processed where the links are posted, regs § 7025(e)

Rule texts read 22 Oct 2026.

What a cookie policy is, and what this builds

A cookie policy is the “clear and comprehensive information” the EU’s ePrivacy rule asks for before a site stores or reads anything on a visitor’s device. In practice it is a list: every cookie, who uses it, what for and for how long, filed under the same groups the banner offers. The banner asks the question; the policy is the page the banner links to so the answer is informed.

This builder keeps the list as a ledger by group, writes the policy around it, and reads back what the list implies for the banner: which switches it needs, which it does not, and how a visitor gets back in to change their mind. For the banner itself, run the cookie banner checklist; for the rest of your notice, the privacy policy checklist.

What it does not do

It does not scan your site. You bring the list, from your browser or your consent tool’s scan, and it is read in this tab only: nothing is sent to us or stored, and closing the tab clears it. Information, not legal advice.

How to use this cookie policy template

  1. Get the real list. Open your site in a private window, accept everything, then open the browser’s developer tools and read the cookies under Application (Chrome, Edge) or Storage (Firefox). If you run a consent platform, its scan report is quicker: paste its rows into the builder.
  2. Copy the vendor’s own words. Name, purpose and lifetime come from the vendor’s cookie page. Where a vendor publishes no lifetime, read the expiry date in the same developer-tools panel and write that.
  3. Sort each cookie into a group. “Strictly necessary” is a narrow door: the builder flags any cookie filed there whose purpose reads like analytics or ads.
  4. Read the banner line. The switches it lists are the ones your banner must offer, with the same group names. A group with no cookies needs no switch.
  5. Publish it where the banner links, and change the date whenever a tool is added or removed.

Keep the policy and the banner saying the same thing

Regulators read the two side by side. A policy that promises a reject button the banner lacks, or lists four cookies when the site sets nine, is the cheapest finding there is. Each promise the generated text makes has a matching job on the site:

Policy promises and the site behaviour each one needs
The policy saysSo the site mustRule
Groups: strictly necessary, statistics, marketingOffer a switch for each group that asks first, under the same namesGDPR Art. 4(11): specific consent
Nothing but strictly necessary is set before you chooseHold every other tag until the visitor says yesEDPB taskforce ¶ 7
You can refuse as easily as you acceptPut a reject option on the layer that carries the accept buttonEDPB taskforce report
Use the "Cookie settings" link to change your choiceKeep that link, with that label, on every pageGDPR Art. 7(3); taskforce ¶ 32
Each cookie is kept for the period statedSet the same lifetime the table shows, or change the tableGDPR Art. 13(2)(a)
Opt out with the link or a browser signalRun the link's form and honour Global Privacy Control§ 1798.135; regs § 7025

Banner patterns that get this right, and the patterns regulators objected to, are collected in our cookie banner examples. If you are choosing a tool to run the banner and the scan, start with the consent management platforms compared on these rules.

Worked example: the candle shop's list

The pre-filled shop runs on Shopify, with the Meta Pixel for its ads, Klaviyo for its email sign-up and a YouTube video on product pages. Its 10 cookies, each read on the vendor’s own page on 22 Oct 2026:

The example shop's cookies, with the page each was read on
CookieGroupKept forSet onRead on
_shopify_essentialStrictly necessary1 yearthe shop's domainShopify cookie policy
cartStrictly necessary2 weeksthe shop's domainShopify cookie policy
cart_currencyStrictly necessary2 weeksthe shop's domainShopify cookie policy
localizationStrictly necessary1 yearthe shop's domainShopify cookie policy
_shopify_analyticsStatistics1 yearthe shop's domainShopify cookie policy
_shopify_marketingMarketing1 yearthe shop's domainShopify cookie policy
_fbpMarketingnot statedthe shop's domainMeta for Developers
__kla_idMarketingup to 2 yearsthe shop's domainKlaviyo Help Center
__Secure-YNIDMarketing6 monthsanother domainHow Google uses cookies
YSCMarketingsessionanother domainHow Google uses cookies
Vendor documentation, read 22 Oct 2026. Vendors change their cookies; re-read before you publish.

What the builder reads back: 6 of 10 cookies wait for consent, so the banner needs statistics and marketing switches and no preferences switch. It raises 2 points: Meta’s developer page gives no lifetime for _fbp, so the shop reads the expiry in its own browser and writes it in; and the YouTube player’s session cookie needs a decision on whether it is California “sharing”.

First party is about the domain, not about who you trust

Two of the vendors in the example say outright that their cookie lives on the shop’s own domain. Meta says the Pixel “automatically saves a unique identifier to an _fbp cookie for the website domain”, and Klaviyo notes that the values “are stored in a browser cookie on your domain”. Browsers file both as first party, but the company reading them is Meta or Klaviyo, which is why the policy names a provider for every line instead of leaning on the first-party label.

Shopify draws the line from the other side: “We do not set advertising cookies through our merchants’ storefronts ourselves, though merchants may choose to do so independently.” Every ad cookie in the example arrives through an app or pixel the shop chose, so it is the shop’s to list.

Check this

A banner that blocks third-party cookies but lets a vendor’s script write first-party ones has not held back the tracking. Block the script until the visitor agrees, not just the domain.

Jurisdiction notes

EUCACOORNJ

EU. The consent duty for cookies sits in the ePrivacy Directive, Art. 5(3), and the quality of that consent comes from the GDPR: specific, informed, and withdrawable as easily as it was given (Art. 7(3)). The EDPB’s cookie banner taskforce adds that legitimate interests cannot be the basis for placing cookies (¶ 24). If your main analytics tool is the reason for the banner, a cookieless analytics tool can shrink the list.

California. Ad cookies are where cookie law meets the CCPA: if a cookie lets another company use visits for cross-context behavioral advertising, that is “sharing”, and the site must process opt-out preference signals and post the opt-out link (only a site that processes the signals frictionlessly may leave the link off, regs § 7025(e), (g)). Our guide to the “Do Not Sell or Share” link covers when the link is needed; the GPC checker shows what the signal looks like from your own browser.

Colorado, Oregon, New Jersey. Each state’s regulator names Global Privacy Control as a signal businesses must honour (Colorado since 1 July 2024, New Jersey from 15 July 2025, Oregon from 1 January 2026). Where another state law requires honouring an opt-out preference signal, its text does not name one.

Questions

Is a cookie policy a separate page from the privacy policy?

It can be either. The rules ask for the information, not a page title. Many sites keep the cookie list on its own page because it changes more often than the privacy policy, and link it from both the banner and the privacy policy.

Do I need a cookie policy if I only use strictly necessary cookies?

Those cookies need no consent under ePrivacy Art. 5(3), but where a cookie carries personal data, such as a session ID tied to an order, GDPR Art. 13 still asks you to tell people about it. A short list of the necessary cookies, with what each does, is the simplest way to give it, and it shows why no banner is needed.

How long can a cookie last?

Neither text sets a number for cookies. What the policy must give is how long data is kept, or the criteria for it (GDPR Art. 13(2)(a)). State the lifetime the vendor sets; if it is longer than your purpose needs, shorten it where the tool allows.

Does copying this text make my site compliant?

No. It is a starting draft built from your own list, not legal advice. The policy is only as true as the list and the banner behind it, so check both against what your site actually sets.

Related