A copyable cookie policy template with clause-by-clause notes mapped to the ePrivacy Directive, GDPR, Planet49, UK PECR after the Data (Use and Access) Act, CCPA opt-out rules and POPIA, plus a…
Last updated: 26 November 2026
A cookie policy template is a ready-made structure for the page that tells visitors which cookies and similar technologies your website uses, why, for how long, who else receives the data, and how to change their choice. Below you will find what the law actually requires (EU, UK, US and South Africa), a copyable template with clause notes, a filled cookie table and a step-by-step method for keeping the policy accurate.
Most free cookie policy templates are generator funnels: placeholders in brackets, a GDPR paragraph and a "start your scan" button. This guide is different in three ways. Every section is tied to the rule it satisfies, so you know what you can and cannot cut. It covers the UK changes made by the Data (Use and Access) Act 2025, US opt-out rules and POPIA, which most templates skip. And it shows filled example rows rather than empty brackets.
What is a cookie policy?
A cookie policy is a public notice that explains the cookies, pixels, local storage and similar technologies a website or app uses. It normally lists each cookie (or group of cookies), its purpose, its provider, how long it lasts and whether it needs consent, and it explains how a visitor can accept, refuse or withdraw consent.
It sits between two other documents:
| Document | What it does | Where it lives |
|---|---|---|
| Cookie banner | Asks for consent before non-essential cookies are set, and records the choice | Shown on first visit, re-openable from every page |
| Cookie policy | Explains in detail what each cookie does, who sets it and for how long | A dedicated page linked from the banner and footer |
| Privacy policy (privacy notice) | Explains all personal data processing, of which cookies are one part | A dedicated page linked from the footer and at collection points |
The banner gets the consent. The cookie policy supplies the "clear and comprehensive information" that makes that consent informed. For banner design, see our guide to cookie banner examples.
Do you need a cookie policy? What the law requires
No law in the EU, UK, US or South Africa says the words "you must publish a cookie policy". What the law requires is specific information, given in a clear and accessible way, before or when cookies are set. A separate cookie policy is simply the most practical way to give that information without bloating your privacy policy. The table below shows where the duty comes from.
| Jurisdiction | Rule | What it requires of your cookie information |
|---|---|---|
| EU | ePrivacy Directive 2002/58/EC, Art 5(3) | Storing or accessing information on a user's device is allowed only with consent, given after "clear and comprehensive information" about the purposes. Exemption for transmission and for what is strictly necessary for a service the user explicitly requested. |
| EU | GDPR Arts 12, 13 and 7(3) | Where cookies involve personal data (Recital 30 names cookie identifiers as online identifiers): controller identity, purposes, legal basis, recipients, transfers, retention, rights, the right to withdraw consent, in concise, intelligible language. Withdrawal must be as easy as giving consent. |
| EU | CJEU Planet49, C-673/17 (1 October 2019) | The information given to users must include how long cookies operate and whether third parties can access them. Pre-ticked boxes are not valid consent. |
| EU | EDPB Guidelines 05/2020 on consent | Minimum content for informed consent: who the controller is, the purpose of each processing operation, the type of data, and the right to withdraw. |
| UK | PECR reg 6 and Schedule A1 (substituted 5 February 2026 by the Data (Use and Access) Act 2025) | Same consent-plus-information model, with new exceptions in Schedule A1 (for example certain statistics, website appearance and emergency purposes), each with conditions. The ICO says information must be clear and easily available, and recommends telling users about strictly necessary cookies too. |
| US (California) | CCPA, Cal. Civ. Code 1798.100 and 1798.135 and CPPA regulations | No consent requirement for cookies. Instead: a notice at collection (categories, purposes, whether data is sold or shared, retention), a "Do Not Sell or Share My Personal Information" route where advertising cookies amount to selling or sharing, and honouring opt-out preference signals such as Global Privacy Control. |
| South Africa | POPIA ss1, 11 and 18 | No cookie-specific rule. Where cookies collect personal information (the s1 definition includes online identifiers), you need a lawful basis under s11 and the s18 notification: what is collected, purpose, who you are, recipients, cross-border transfers and the data subject's rights. |
The practical conclusion: if you serve EU or UK visitors, your cookie information must be detailed enough to support consent, cookie by cookie or at least provider by provider. If you serve California, it must support the opt-out. If you serve South Africa, it must meet s18 notification. One well-built cookie policy can do all three.
What a cookie policy must include
Use this checklist to test any cookie policy template, including the one below.
| Section | EU / UK | California | South Africa | Why it is there |
|---|---|---|---|---|
| Who you are and how to contact you | Required (GDPR Art 13(1)(a)) | Required in privacy policy | Required (s18(1)(b)) | Users must know who is responsible |
| What cookies and similar technologies are | Good practice | Good practice | Good practice | Pixels, SDKs and local storage are covered too, not just cookies |
| Categories and purposes | Required (Art 5(3), Art 13(1)(c)) | Required (notice at collection) | Required (s18(1)(c)) | The core of informed consent |
| Cookie table: name, provider, purpose, duration, first or third party | Required in substance (Planet49) | Good practice | Good practice | Duration and third-party access must be disclosed |
| Legal basis for each category | Required where personal data (Art 13(1)(c)) | Not applicable | Required in substance (s11) | Consent for non-essential, other bases for strictly necessary |
| Third parties and international transfers | Required (Art 13(1)(e), (f)) | Required if sold or shared | Required (s18(1)(g), (h)) | Many cookies send data to ad and analytics providers abroad |
| How to accept, refuse and withdraw consent | Required (Art 7(3), Art 13(2)(c)) | Opt-out route required | Good practice (s11(2)(b) withdrawal) | Withdrawal must be as easy as giving consent |
| Opt-out signals (GPC) | Not required | Required to honour | Not required | California regulations require opt-out preference signals to be honoured |
| Retention of cookie data and consent records | Required (Art 13(2)(a)) | Required (retention in notice) | Good practice | Cookie lifetime and data retention are different things |
| Rights and complaints | Required (Art 13(2)(b), (d)) | Required in privacy policy | Required (s18(1)(h)) | Link to your privacy policy is usually enough |
| Date and version | Good practice | Good practice | Good practice | You will need to prove what users were told when they consented |
Cookie policy template (copy and adapt)
Replace the text in square brackets. Delete any section that genuinely does not apply, but read the clause note first. This template is a starting point, not legal advice; have it reviewed against your actual cookies and markets.
1. About this policy
This Cookie Policy explains how [Company legal name] ("we", "us") uses cookies and similar technologies on [website domain(s)] and [app name, if any]. It should be read with our Privacy Policy, which explains how we handle personal information more generally.
We are the controller (in South Africa, the responsible party) for personal information collected through cookies we set. You can contact us at [privacy email], [postal address]. [If applicable: Our data protection officer / information officer can be contacted at ...]
Clause note: identity and contact details are required under GDPR Art 13(1)(a) and POPIA s18(1)(b). If you have an EU or UK representative under Art 27, name them here or in the privacy policy.
2. What cookies and similar technologies are
Cookies are small text files placed on your device when you visit a website. We also use similar technologies, such as pixels (tiny images that tell us when a page or email has been viewed), local storage and software development kits in our apps. In this policy, "cookies" covers all of these.
Some cookies are set by us (first-party cookies). Others are set by third parties whose services we use, such as analytics or advertising providers (third-party cookies). Some are deleted when you close your browser (session cookies); others stay on your device for a set period (persistent cookies).
Clause note: Art 5(3) ePrivacy and PECR reg 6 cover any storage of, or access to, information on a device, so the policy should not be limited to cookies in the narrow sense.
3. How we use cookies
We use cookies in the following categories:
- Strictly necessary: needed for the website to work, for example to keep you signed in, remember your cookie choices and keep the site secure. These do not need your consent, and you cannot switch them off in our cookie settings, although you can block them in your browser (parts of the site may then not work).
- Functional: remember choices you make, such as language or region. [EU: we ask for your consent. UK: describe whether you rely on a Schedule A1 exception.]
- Analytics: help us understand how visitors use the site so we can improve it. We only set these if you agree.
- Advertising: used by us and our advertising partners to show you relevant ads on other sites and to measure campaigns. We only set these if you agree. [California: using these cookies may be a "sale" or "sharing" of personal information; see section 6.]
Clause note: only claim "strictly necessary" for cookies that are essential to a service the user asked for. The ICO and EDPB both treat analytics and advertising as non-essential. If you rely on one of the new UK Schedule A1 exceptions (for example for certain statistical purposes), check its conditions and say so plainly.
4. The cookies we use
The table below lists the cookies currently used on our website. We review it at least [every three months] and whenever we add a new tool.
See the filled example table in the next section.
Clause note: Planet49 requires users to be told how long cookies last and whether third parties can access them. A table is the clearest way to do that.
5. Your choices: accepting, refusing and withdrawing consent
When you first visit our website, we ask for your consent to non-essential cookies. You can accept all, reject all or choose by category. You can change your mind at any time by clicking [Cookie settings] at the bottom of every page. Withdrawing consent does not affect cookies already used lawfully before you withdrew it, but we will stop setting those cookies from that point.
You can also control cookies in your browser settings. Blocking strictly necessary cookies may stop parts of the website from working.
Clause note: GDPR Art 7(3) requires withdrawal to be as easy as giving consent. A footer link that reopens the banner meets this; "email us to withdraw" does not.
6. California residents: opt-out of sale or sharing
If you are a California resident, some of our advertising cookies may involve "selling" or "sharing" personal information as defined by the California Consumer Privacy Act. You can opt out by clicking [Do Not Sell or Share My Personal Information] or by switching off advertising cookies in [Cookie settings]. We also treat a Global Privacy Control signal from your browser as a valid request to opt out of sale and sharing for that browser.
Clause note: delete this section only if you have no California visitors or no cookies that sell or share data. See our glossary entry on opt-out preference signals.
7. Third parties and international transfers
Some of the cookies listed above are set by third parties who receive information about your use of our website. These providers are named in the table. Where a provider is outside [the UK / EU / South Africa], we rely on [adequacy decisions / standard contractual clauses / the UK International Data Transfer Agreement / POPIA s72 safeguards] to protect your information. See our Privacy Policy for details.
8. How long we keep information
Each cookie's lifetime is shown in the table. Separately, we keep records of your cookie consent choices for [period, for example 12 months] so that we can show what you agreed to. Personal information collected through analytics cookies is kept for [period] in [tool].
Clause note: cookie lifetime (how long the file stays on the device) and retention (how long the data is kept in the provider's systems) are different. GDPR Art 13(2)(a) asks for retention. Our data retention policy guide shows how to set periods.
9. Your rights and complaints
You have rights over your personal information, including the right to access, correct and delete it, and to complain to a regulator. See our Privacy Policy for how to exercise them.
10. Changes to this policy
We update this policy when our use of cookies changes. This version is [version number], dated [date]. [Earlier versions are available on request.]
Clause note: versioning lets you prove which wording a user saw when they gave consent, which matters if a regulator or customer asks.
Filled cookie table example
Here is how a filled table looks for a typical B2B software marketing site. The cookie names, durations and providers are illustrative; replace them with the results of your own scan, because real values vary by tool and configuration.
| Cookie or technology | Provider | Category | Purpose | Duration | First or third party | Consent needed (EU/UK) |
|---|---|---|---|---|---|---|
| session_id | [Your company] | Strictly necessary | Keeps a signed-in user's session | Session | First | No |
| csrf_token | [Your company] | Strictly necessary | Protects forms against cross-site request forgery | Session | First | No |
| consent_state | [Consent tool] | Strictly necessary | Stores the visitor's cookie choices | 12 months | First | No |
| site_lang | [Your company] | Functional | Remembers language selection | 12 months | First | EU: yes. UK: check Schedule A1 |
| [analytics_id] | [Analytics provider] | Analytics | Distinguishes visitors to count page views | [Per provider documentation] | Third | Yes (UK: check Schedule A1 statistics exception and its conditions) |
| [ads_click_id] | [Ad platform] | Advertising | Attributes sign-ups to ad campaigns | [Per provider] | Third | Yes |
| [pixel] | [Social network] | Advertising | Builds audiences for retargeting | [Per provider] | Third | Yes |
| Local storage: chat_widget | [Chat provider] | Functional | Keeps chat history during a visit | Until cleared | Third | EU: yes |
Three rules for the table:
- List every provider. Grouping fifteen advertising cookies under "advertising partners" fails the third-party test in Planet49.
- Take durations from your scan or the provider's documentation, not from a template. They change when providers update their tools.
- Keep the consent column honest. If a cookie fires before consent, the table should not say it needs consent; fix the banner instead.
How to build your cookie policy: 7 steps
- Scan the site. Run a cookie scan on every domain and subdomain, logged in and logged out, with consent accepted and with consent rejected. A cookie that appears after "reject all" is a compliance problem, not a documentation problem.
- Inventory tags and SDKs. Check your tag manager, embedded videos, chat widgets, forms and mobile app SDKs. Scans miss what only loads on certain pages or after a click.
- Classify each item. Strictly necessary, functional, analytics or advertising. Challenge every "strictly necessary" label: would the service the user requested break without it?
- Match the banner to the policy. Every category in the policy must appear in the banner, and every cookie must be blocked until consent where consent is needed.
- Map third parties and transfers. For each provider, record the country, the transfer mechanism and whether the data is sold or shared under US state laws. Link them to your vendor records and record of processing activities.
- Write and publish. Use the template, link it from the banner and the footer, and keep the language plain (GDPR Art 12(1) asks for concise, intelligible information).
- Set a review cycle. Rescan at least quarterly and on every new tool, version the policy and keep the old versions.
Worked example: a Cape Town and London SaaS company
A 90-person software company has a marketing site serving South Africa, the UK, the EU and the US. Its old cookie policy was a two-paragraph section inside the privacy policy. Here is what the review found and what changed (illustrative).
- Scan results: 31 cookies and three pixels across the main site and the documentation subdomain. Two advertising pixels fired before consent because they were hard-coded on the pricing page, outside the tag manager.
- Classification: 6 strictly necessary, 3 functional, 9 analytics, 16 advertising. One "necessary" cookie turned out to be an A/B testing tool, which was reclassified as analytics.
- Fixes before writing: the pixels were moved into the tag manager behind consent; the documentation subdomain was added to the consent tool; a footer "Cookie settings" link was added to every page.
- Policy: a standalone page using the ten sections above, a full cookie table, a California opt-out section (the advertising pixels amounted to sharing for cross-context behavioural advertising) and a POPIA-ready notification paragraph covering purposes, recipients and transfers.
- Ongoing: a quarterly rescan owned by marketing operations, with legal sign-off on new advertising tools, and each version of the policy stored with its date.
The lesson: most of the work was fixing the site, not writing the policy. A cookie policy that accurately describes non-compliant behaviour is still non-compliant.
Common mistakes
- Copying a template without scanning. The policy lists cookies you do not use and misses the ones you do.
- Calling analytics "strictly necessary". Regulators consistently reject this.
- No withdrawal route. "Clear your cookies in your browser" is not as easy as clicking "accept".
- Durations missing or wrong. Planet49 makes duration part of the information users must receive.
- Forgetting subdomains and apps. Help centres, documentation sites and mobile SDKs often run their own trackers.
- No version history. You cannot show what a user consented to if the policy has been overwritten.
- Ignoring US opt-out signals. A banner built only for EU consent often does nothing with Global Privacy Control.
Frequently asked questions
Do I need a cookie policy on my website?
If your site uses any cookies beyond the strictly necessary, and you have visitors in the EU or UK, you need to give clear and comprehensive information about them, and a separate cookie policy is the most practical way to do it. Even sites with only strictly necessary cookies should explain them; the ICO recommends it. In California and South Africa the information can sit in your privacy notice, but a cookie policy keeps it manageable.
What is the difference between a cookie policy and a privacy policy?
A privacy policy covers all personal data processing: customers, prospects, website visitors, sometimes job applicants. A cookie policy covers only cookies and similar technologies, in more detail, usually with a table of every cookie, its provider and its duration. The cookie policy should link to the privacy policy for rights and complaints.
Can I use a free cookie policy generator?
A generator can save time on structure, but the output is only as accurate as the scan behind it. Check that it lists every provider, gives real durations, explains withdrawal and covers the markets you serve. Many generated policies omit UK, US opt-out and POPIA content.
What are strictly necessary cookies?
Cookies that are essential to provide a service the user has explicitly asked for, such as a shopping basket, a login session or security cookies. They do not need consent under ePrivacy Art 5(3) or PECR, but they should still be described in your cookie policy. Analytics and advertising cookies are not strictly necessary.
How often should I update my cookie policy?
Whenever you add, remove or reconfigure a tool that sets cookies, and in any case on a regular review cycle; quarterly is a sensible default for active marketing sites. Keep each version with its date.
Does POPIA require cookie consent?
POPIA has no cookie-specific rule. Where cookies collect personal information, you need a lawful basis under s11 (consent is the safest basis for advertising and most analytics) and you must give the s18 notification. Many South African companies also serve EU or UK visitors and adopt the consent model for all visitors. Our POPIA compliance guide covers the wider duties.
Keep your cookie policy accurate with Core GRC
A cookie policy goes out of date the day marketing adds a new tag. Core GRC's cookie consent module helps you run your consent banner and keep cookie records current, and the privacy policies and notices module lets you version and publish your cookie policy alongside your privacy notice. For the wider picture, see our GDPR compliance checklist.
Cover photo by Vitaly Gariev on Unsplash



