Privacy policies
What to include in a cookie policy (with example)
A cookie policy explains which cookies and similar technologies your site uses, why, who sets them, how long they last and how visitors can change their choice. The heart of it is an accurate cookie table, backed by a few short sections of plain-language explanation.
- Plain English
- Written for website owners
- Free to read
On this page
A cookie policy should tell visitors what cookies and similar technologies your site uses, what each one is for, who sets it, how long it lasts, and how to accept, refuse or change their choice. Most good cookie policies have a short introduction, an explanation of each category, a detailed cookie table, a section on third parties, and clear instructions for managing consent. The legal basis is ePrivacy Directive Art. 5(3) (or national laws such as the UK's PECR), which requires "clear and comprehensive information" about the purposes of storing or accessing information on a device. The GDPR's transparency rules (Art. 12 and 13) add to it where cookies involve personal data.
The sections every cookie policy needs
- What cookies and similar technologies are. Two or three sentences. Mention that the policy also covers localStorage, sessionStorage, pixels and SDKs if you use them.
- How you use them. A summary of each category you use, such as necessary, functional, analytics and marketing, in plain words. If you're unsure where a cookie belongs, see cookie categories explained.
- The cookie table. Every cookie and storage item, grouped by category.
- Third parties. Who else sets cookies through your site, what they use the data for, and links to their privacy information.
- Your choices. How to accept or reject, how to change or withdraw consent later, and how browser settings work.
- Contact and updates. Who to contact, and a "last updated" date.
If you'd rather fold this into your privacy policy than publish a separate page, that can work. We cover the trade-offs in privacy policy vs cookie policy.
The cookie table: columns to include
The table is what turns a generic statement into something specific to your site. It's also the part regulators and auditors check against what your site actually sets. Use these columns:
| Column | What to put in it | Why it matters |
|---|---|---|
| Name | The exact cookie or storage key, such as _ga | Lets anyone match the policy to what's in their browser |
| Provider | Your own domain, or the third party that sets it | Shows who receives the data |
| Purpose | One plain sentence on what it does | The core of the "clear and comprehensive" requirement |
| Category | Necessary, functional, analytics or marketing | Links each cookie to the choices in your banner |
| Duration | "Session" or a period such as "13 months" | Visitors and regulators care how long tracking lasts |
| Type | First-party or third-party; cookie, localStorage, pixel | Shows how it works and which domain it belongs to |
Group the rows by category in the same order as your banner, so that a visitor who wonders what "Analytics" means can read exactly those rows.
Example cookie table
Here's what a small store's table might look like. Durations are typical defaults; check your own configuration, because many can be changed.
| Category | Name | Provider | Purpose | Duration | Type |
|---|---|---|---|---|---|
| Strictly necessary | session_id | example-store.com | Keeps you signed in and keeps your basket as you move between pages | Session | First-party cookie |
| Strictly necessary | csrf_token | example-store.com | Protects forms against cross-site request forgery | Session | First-party cookie |
| Strictly necessary | consent | example-store.com | Remembers your cookie choices so we don't ask on every page | 12 months | First-party cookie |
| Analytics | _ga | Google Analytics | Distinguishes visitors so we can count unique users | Up to 2 years | First-party cookie |
| Analytics | _ga_<ID> | Google Analytics | Keeps track of the current session | Up to 2 years | First-party cookie |
| Marketing | _fbp | Meta | Lets Meta measure our ads and show you ads based on your visit | 3 months | First-party cookie |
| Marketing | _gcl_au | Google Ads | Links ad clicks to purchases on our site | 3 months | First-party cookie |
Example wording for the main sections
Adapt these short passages to your site. Keep the tone plain and specific.
About this policy. This policy explains how Example Store uses cookies and similar technologies on example-store.com. Cookies are small text files stored by your browser. We also use local storage, which works in a similar way. In this policy, "cookies" covers both.
How we use cookies. Some cookies are strictly necessary: without them, you couldn't sign in or check out, so we don't ask for consent to use them. Other cookies help us understand how the site is used (analytics) or measure and personalize our advertising (marketing). We only use these if you agree, and you can change your mind at any time.
Third parties. Google and Meta set cookies through our site when you allow analytics or marketing. They may combine this data with other information they hold about you, under their own privacy policies.
Changing your choices. You can change or withdraw your consent at any time using the "Cookie settings" link at the bottom of every page. Withdrawing consent doesn't affect anything that happened before you withdrew it.
The last sentence reflects GDPR Art. 7(3): withdrawal must be possible at any time and as easy as giving consent, and it doesn't make earlier processing unlawful.
Don't stop at cookies
Art. 5(3) covers any storage of, or access to, information on a visitor's device, not just cookies. Your policy should also cover:
- localStorage and sessionStorage items set by your own code or by third-party scripts (see do localStorage and sessionStorage need consent?)
- Tracking pixels in pages and in marketing emails
- Embedded content such as YouTube videos, maps or social posts, which can set third-party cookies when they load
- Fingerprinting or device identification techniques, if any vendor uses them
If a tool runs only after consent, say so. If it runs in a limited, cookieless way before consent, such as Google tags in advanced Consent Mode, explain that too, so the policy matches what visitors can observe.
Explain how visitors manage consent
A cookie policy that only says "you can disable cookies in your browser settings" isn't enough when you rely on consent. Browser settings are blunt, and they don't let visitors withdraw consent you've already recorded. Give visitors a direct way to reopen your consent preferences from the policy page itself.
With PrivacyQuick, any element with a data-pq-open attribute on a page that includes the policy or cookie-table widget opens the preferences panel:
<p>You can change your choices at any time:
<a href="#" data-pq-open>Cookie settings</a></p>
Elsewhere, call PrivacyQuick.open() from your own link or button. Mention browser controls as a secondary option, and note that blocking all cookies may break features such as the shopping basket.
Keeping the policy accurate
A cookie policy goes out of date quietly. A marketing team adds a pixel, a plugin update adds a cookie, a vendor renames one. The table then no longer matches the site, which undermines the "informed" part of consent. To keep it accurate:
- Scan on a schedule. Use an automated scanner to crawl the site in a real browser and list cookies, storage and third-party hosts. Run it after every release, and at least monthly.
- Review unknown items. Scanners classify known cookies automatically. Anything unrecognized needs a human to decide its purpose and category.
- Version the policy. Keep a "last updated" date, and when you add a new category or purpose, ask visitors for consent again.
The cookie table should be generated from what your site actually sets, not from what you think it sets. A manual audit is a good start (see how to audit your website's cookies), but only regular scans keep it true over time.
Common mistakes
- Copying a vendor's generic cookie list that includes cookies you don't use and misses ones you do.
- Describing purposes vaguely, for example "to improve your experience," for marketing cookies.
- Putting analytics or marketing cookies under "necessary" to avoid asking for consent.
- Omitting durations, or listing "persistent" without a period.
- Categories in the policy that don't match the categories in the banner.
- No way to change consent from the policy page.
Next steps
- Run a free cookie scan to get a starting inventory of your cookies and storage.
- Assign every item a category, provider, purpose and duration.
- Write the short explanatory sections using the examples above.
- Add a working "Cookie settings" link to the policy and your footer.
- Schedule scans and set a reminder to review the policy whenever your tools change.
PrivacyQuick's policy generator produces a cookie policy whose table is rebuilt from your scheduled scans, so new cookies appear without manual editing. You can also embed just the table in a policy you write yourself. Details are in the policy docs.
Frequently asked questions
Do I need a cookie policy if I only use necessary cookies?
Even strictly necessary cookies should be explained to visitors, but you don't need consent for them. A short section in your privacy policy listing them is usually enough for a site with no other cookies.
Do I have to list every cookie by name?
Regulators expect enough detail for visitors to understand what each cookie does and who sets it. Listing cookies by name, provider, purpose and duration is the established way to meet that and makes your policy easy to check against your site.
Is a cookie policy the same as a cookie banner?
No. The banner is where visitors give or refuse consent, with short information on the first layer. The cookie policy is the full reference document that the banner links to.
How often should the cookie table be updated?
Whenever the cookies on your site change, which can happen after any plugin, theme or marketing tag change. Scanning regularly, for example monthly or weekly, is the practical way to catch changes.
Check your own website in 30 seconds
Our free scanner lists every cookie and tracker your site sets, sorted into categories, before you add a banner.
This guide is general information, not legal advice. Laws and regulator guidance change; check the current rules for your situation or ask a lawyer.