Skip to content

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.

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.

Which cookies need consent
Type of cookieUKEU
Strictly necessary, such as the basket, logins, security and remembering cookie choicesNo consent needed[2][5]No consent needed[8]
Analytics, used only to see how the site is used and improve itNo 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 choiceNo 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 advertisingConsent 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]

  • 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.

Download .txt

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.

Example cookie table
NameProviderPurposeTypeHow long
cartShopify[15]Remembers what's in the basketStrictly necessary91 days
_shopify_cmpShopify[15]Remembers the visitor's cookie choicesStrictly necessary1 year
__stripe_midStripe[14]Fraud prevention at checkoutStrictly necessary1 year
__stripe_sidStripe[14]Fraud prevention at checkoutStrictly necessary30 minutes
_gaGoogle Analytics[13]Tells visitors apartAnalytics2 years by default
_ga_[your ID]Google Analytics[13]Keeps track of the visitAnalytics2 years by default
_shopify_marketingShopify[15]Marketing data for the storeMarketing1 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

  1. Open your site in a private browser window and don't touch the cookie banner.
  2. 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.
  3. 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).
  4. Accept all cookies, browse a few pages and go through the checkout, then note the new ones.
  5. Look up each cookie in the provider's own documentation for its purpose and duration.
  6. 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

  1. The Privacy and Electronic Communications Regulations 2003, regulation 6 (legislation.gov.uk) (checked 17 November 2026)
  2. The Privacy and Electronic Communications Regulations 2003, Schedule A1 (legislation.gov.uk) (checked 17 November 2026)
  3. The Data (Use and Access) Act 2025 (Commencement No. 6) Regulations 2026, regulation 2 (legislation.gov.uk) (checked 17 November 2026)
  4. ICO: What are the PECR rules? (storage and access technologies guidance) (checked 17 November 2026)
  5. ICO: What are the exceptions? (storage and access technologies guidance) (checked 17 November 2026)
  6. ICO: How do we manage consent in practice? (storage and access technologies guidance) (checked 17 November 2026)
  7. ICO: Statement on the commencement of the Data (Use and Access) Act, 5 February 2026 (checked 17 November 2026)
  8. Directive 2002/58/EC (ePrivacy Directive), Article 5(3), consolidated text (EUR-Lex) (checked 17 November 2026)
  9. EDPB Guidelines 05/2020 on consent under Regulation 2016/679 (checked 17 November 2026)
  10. Court of Justice of the EU, Planet49, case C-673/17, 1 October 2019 (EUR-Lex) (checked 17 November 2026)
  11. EDPB: Report of the cookie banner taskforce, January 2023 (checked 17 November 2026)
  12. Council of the EU: Digital rulebook, Council agrees position, 21 October 2026 (checked 17 November 2026)
  13. Google Analytics Help: [GA4] Cookie usage on websites (checked 17 November 2026)
  14. Stripe: Cookies and consent settings (checked 17 November 2026)
  15. Shopify: Cookie policy, merchant storefronts (checked 17 November 2026)
  16. ICO: How do the rules apply to online advertising? (checked 17 November 2026)