Free cookie policy template for the UK and EU
A cookie policy lists the cookies your site uses, what each one is for, who sets it and how long it lasts. In the EU you need consent for any cookie that isn't strictly necessary.[8] Since 5 February 2026, UK sites can also use analytics and appearance cookies without consent, if they explain them clearly and give an easy way to object.[2][3] Copy the template below and fill in your own cookie table.
By Stefan PrettyUpdated
Pretty Klicks is written by Stefan Pretty, founder and CEO of Subbly. About the site
A cookie policy is the page that lists the cookies your site uses and why. It sits alongside the cookie banner, which asks for consent, and your privacy policy, which covers all the personal data you collect.
Do you need a cookie policy?
Yes, if your site uses cookies or anything similar, such as local storage or a tracking pixel. In the UK the ICO says you must tell users which of these technologies you use and explain what they do.[4] In the EU, consent is only valid if people are first told clearly what the cookies are for.[8]
Most sites use more than their owners think. A shop's checkout, an embedded video, a chat widget and an analytics script can each set their own cookies.
When you need consent
The UK changed its rules on 5 February 2026, when the Data (Use and Access) Act 2025 rewrote the cookie rules in the Privacy and Electronic Communications Regulations.[1][3] The EU rules have not changed.
| Type of cookie | UK | EU |
|---|---|---|
| Strictly necessary, such as the basket, logins, security and remembering cookie choices | No consent needed[2][5] | No consent needed[8] |
| Analytics, used only to see how the site is used and improve it | No consent needed if you explain it clearly and give a simple, free way to object[2][5] | Consent needed[8] |
| Appearance, such as remembering a language or layout choice | No consent needed, with the same two conditions as analytics[2][5] | Consent needed unless it is strictly necessary for something the user asked for[8] |
| Marketing and advertising | Consent needed. No advertising purpose counts as strictly necessary[5] | Consent needed[8] |
The EU has proposed similar exemptions, including one for audience measurement, but in October 2026 they were still a proposal, so EU visitors still need to opt in to analytics.[12]
What counts as consent
- A clear action. Someone has to click or tap to agree. Carrying on browsing, scrolling or ignoring the banner is not consent.[4][6][9]
- No pre-ticked boxes. A box the visitor has to untick is not valid consent.[10]
- Reject as easily as accept. If there's an "Accept all" button, there should be a "Reject all" button on the same layer.[4][11]
- Nothing before the choice. Don't set optional cookies until the visitor has agreed.[4]
- No cookie walls, in most cases. Blocking the site until someone accepts usually means consent isn't freely given.[9][16]
- Name the other companies. Consent is only valid if you say which third parties get the data.[6]
- Easy to change. People must be able to withdraw consent as easily as they gave it, for example with a cookie settings link on every page.[6][11]
What your cookie policy must say
The ICO lists four things you must tell people: which technologies you use, what they are for, whether third parties store, read or receive the information, and how long each one lasts.[4] The EU's highest court said the same about duration and third parties in its Planet49 ruling.[10] A table with one row per cookie covers all four.
The cookie policy template
Copy the template, replace everything in square brackets, and delete the types of cookie you don't use. Then fill in the table using the steps below.
Cookie policy template
Cookie policy for [Website name]
Last updated: [Date]
This policy explains how [Business name] ("we", "us") uses cookies and similar technologies on [website address]. Read it with our privacy policy at [link to your privacy policy].
What cookies are
Cookies are small text files a website stores on your device. Similar technologies, such as local storage and tracking pixels, work in the same way. In this policy, "cookies" means all of them.
The cookies we use
Strictly necessary. These make the site work: keeping items in your basket, keeping you logged in, remembering your cookie choices and preventing fraud at checkout. They don't need your consent, and you can't switch them off on our site.
Analytics. These count visits and show us how people use the site, so we can improve it. [For a site with UK visitors only, if your analytics meet the ICO's conditions: We use these without asking first, and you can switch them off at any time in our cookie settings.] [For a site with EU visitors: We only use these if you agree.]
Appearance and functionality. These remember choices such as your language or region. [Use the same wording you chose for analytics.]
Marketing. These are set by us or our advertising partners to show you relevant adverts and measure how they perform. We only use them if you agree.
[Delete any type you don't use.]
Cookie table
Name | Provider | Purpose | Type | How long it lasts
[cookie name] | [us, or the company that sets it] | [what it does] | [strictly necessary, analytics, appearance or marketing] | [duration]
[add a row for every cookie]
Your choices
When you first visit, we ask which optional cookies you accept. Rejecting them is as easy as accepting them, and the site still works if you do. You can change your mind at any time using [name and location of your cookie settings link, for example "Cookie settings" at the bottom of every page].
You can also block or delete cookies in your browser settings. If you block strictly necessary cookies, parts of the site may stop working.
Other companies
Some cookies are set by the companies named in the table. Their own policies explain how they use the information:
[company name]: [link to its cookie or privacy policy]
Changes to this policy
We update this policy when we change the cookies we use. The date at the top shows when it last changed.
Contact us
If you have questions about this policy, email [email address] or write to [postal address].A worked example of the cookie table
Here is the table for a small Shopify store that takes card payments through Stripe and uses Google Analytics. The names and durations come from each company's own documentation.
| Name | Provider | Purpose | Type | How long |
|---|---|---|---|---|
| cart | Shopify[15] | Remembers what's in the basket | Strictly necessary | 91 days |
| _shopify_cmp | Shopify[15] | Remembers the visitor's cookie choices | Strictly necessary | 1 year |
| __stripe_mid | Stripe[14] | Fraud prevention at checkout | Strictly necessary | 1 year |
| __stripe_sid | Stripe[14] | Fraud prevention at checkout | Strictly necessary | 30 minutes |
| _ga | Google Analytics[13] | Tells visitors apart | Analytics | 2 years by default |
| _ga_[your ID] | Google Analytics[13] | Keeps track of the visit | Analytics | 2 years by default |
| _shopify_marketing | Shopify[15] | Marketing data for the store | Marketing | 1 year |
Your own list will differ. Shopify renames its cookies from time to time, and Google Analytics lets you change how long its cookies last.[13][15]
How to find the cookies your site uses
- Open your site in a private browser window and don't touch the cookie banner.
- Open the browser's developer tools and find the list of cookies and local storage for your site. In Chrome it's under Application, then Storage.
- Note every cookie set before you made a choice. Only strictly necessary ones should be there (and, for UK-only sites, analytics or appearance cookies that meet the conditions above).
- Accept all cookies, browse a few pages and go through the checkout, then note the new ones.
- Look up each cookie in the provider's own documentation for its purpose and duration.
- Repeat the check whenever you add an app, a plugin, a chat widget or an embedded video.
What happens if you get it wrong
Since 5 February 2026 the ICO can fine up to £17.5 million or 4% of global turnover for breaking these rules.[7] Small sites are more likely to get a complaint first, so the practical risk is a letter from the regulator asking you to fix your banner and policy.
Sources
- The Privacy and Electronic Communications Regulations 2003, regulation 6 (legislation.gov.uk) (checked 17 November 2026)
- The Privacy and Electronic Communications Regulations 2003, Schedule A1 (legislation.gov.uk) (checked 17 November 2026)
- The Data (Use and Access) Act 2025 (Commencement No. 6) Regulations 2026, regulation 2 (legislation.gov.uk) (checked 17 November 2026)
- ICO: What are the PECR rules? (storage and access technologies guidance) (checked 17 November 2026)
- ICO: What are the exceptions? (storage and access technologies guidance) (checked 17 November 2026)
- ICO: How do we manage consent in practice? (storage and access technologies guidance) (checked 17 November 2026)
- ICO: Statement on the commencement of the Data (Use and Access) Act, 5 February 2026 (checked 17 November 2026)
- Directive 2002/58/EC (ePrivacy Directive), Article 5(3), consolidated text (EUR-Lex) (checked 17 November 2026)
- EDPB Guidelines 05/2020 on consent under Regulation 2016/679 (checked 17 November 2026)
- Court of Justice of the EU, Planet49, case C-673/17, 1 October 2019 (EUR-Lex) (checked 17 November 2026)
- EDPB: Report of the cookie banner taskforce, January 2023 (checked 17 November 2026)
- Council of the EU: Digital rulebook, Council agrees position, 21 October 2026 (checked 17 November 2026)
- Google Analytics Help: [GA4] Cookie usage on websites (checked 17 November 2026)
- Stripe: Cookies and consent settings (checked 17 November 2026)
- Shopify: Cookie policy, merchant storefronts (checked 17 November 2026)
- ICO: How do the rules apply to online advertising? (checked 17 November 2026)