New: Pandectes in Claude & ChatGPT - ask your AI assistant about your cookie banner, scans and consent rates

New: Pandectes in Claude & ChatGPT See how it works

Cookie Policy: What It Is, What to Include and a Sample

The short answer: a cookie policy is a page on your website that tells visitors which cookies and similar technologies the site uses, what each one does, who sets it, how long it lasts, and how visitors can accept, refuse or change their choice. In the EU and the UK it is how you give the “clear and comprehensive information” that the cookie rules require before you ask for consent. It should list every cookie by category, be linked from your cookie banner and your footer, and stay up to date as your site changes.

A cookie policy, also called a cookie notice, cookie statement or cookie declaration, explains the cookies a website places on a visitor’s device and why. It covers more than cookies in the strict sense: local storage, tracking pixels, SDKs and similar technologies that store or read information on the device fall under the same rules.

It is not the same document as a privacy policy. A privacy policy covers all the personal data you process, from orders and accounts to newsletters. A cookie policy covers only what happens in the browser, in much more detail. Many sites put a short cookie section in the privacy policy and link it to a separate, detailed cookie policy. See are cookie policies and privacy policies the same thing?

No law requires a document with that exact name, but several laws require the information it contains:

  • EU, ePrivacy Directive (Article 5(3)): storing or reading information on a visitor’s device needs the visitor’s consent, given after “clear and comprehensive information” about the purposes. Strictly necessary cookies are exempt from consent but should still be explained. Each EU country implements this in its own law, such as the TDDDG in Germany and the LSSI in Spain.
  • EU, GDPR (Articles 12 and 13): when cookies collect personal data, visitors have the right to be told the purposes, the legal basis, the recipients, the retention period and their rights. Consent is only valid if it is informed.
  • UK, PECR (regulation 6): the same rule as the ePrivacy Directive, with a few low-risk exemptions added by the Data (Use and Access) Act 2025, which still require you to tell visitors about the cookies.
  • California, CCPA: a notice at collection has to tell visitors what personal information is collected through cookies and pixels and whether it is sold or shared, with a “Do not sell or share my personal information” link.
  • Brazil, LGPD, and Canada, PIPEDA: both require meaningful information before personal data is collected, which in practice means explaining tracking cookies.

A cookie banner alone is not enough: it has room for a summary, not for the full list. The banner links to the cookie policy, and the policy holds the detail.

  1. Who you are and how to contact you.
  2. What cookies are, in a sentence or two, and which similar technologies you use.
  3. The categories you group cookies into, such as strictly necessary, functionality, performance (analytics) and targeting (advertising), with what each category is for. Use the same categories as your cookie banner.
  4. A list of every cookie, with its name, provider (first party or the third party that sets it), purpose, category and duration.
  5. Third parties that receive data through cookies, such as analytics or advertising platforms, and whether data leaves the EU.
  6. The legal basis: consent for everything except strictly necessary cookies.
  7. How to give, refuse and withdraw consent, with a link or button that reopens the cookie settings, and how to delete cookies in the browser.
  8. The date it was last updated.

The list of cookies is the part that most often goes wrong. Every app, pixel or embedded video you add can set new cookies, and a policy written once lists the cookies your site used on the day it was written.

Example cookies on an online store

A typical Shopify store sets cookies like these. The names and durations below are examples, not a list to copy: providers change their cookies, so your own list should come from a scan of your store.

Cookie Provider Category Purpose Duration
cart Shopify Strictly necessary Remembers the contents of the shopping cart 2 weeks
secure_customer_sig Shopify Strictly necessary Keeps a customer logged in to their account 1 year
_tracking_consent Shopify Strictly necessary Stores the visitor’s cookie consent choice 1 year
_shopify_y Shopify Performance Shopify analytics: recognizes returning visitors 1 year
_ga Google Performance Google Analytics: distinguishes visitors 2 years
_fbp Meta Targeting Meta Pixel: measures and targets advertising 3 months

Below is a sample cookie policy for an online store. Replace the text in square brackets, and replace the example table with the cookies your store actually sets. It is a starting point, not legal advice: check it against the laws that apply to you.

Cookie policy

Last updated: [date]

This cookie policy explains how [Store name] (“we”, “us”) uses cookies and similar technologies on [website address]. For how we handle personal data in general, see our [privacy policy link].

What are cookies? Cookies are small text files that a website stores on your device. We also use similar technologies, such as local storage and pixels. In this policy, “cookies” covers all of them.

How we use cookies We use cookies in four categories:

  • Strictly necessary: needed for the store to work, for example to keep items in your cart, keep you logged in and remember your cookie choices. These do not need your consent and cannot be switched off.
  • Functionality: remember your preferences, such as language or currency. We only use them with your consent.
  • Performance: help us understand how visitors use the store, so we can improve it. We only use them with your consent.
  • Targeting: used by us and our advertising partners to show you relevant ads and measure their results. We only use them with your consent.

The cookies we use [Table of cookies: name, provider, category, purpose, duration.]

Third parties Some cookies are set by third parties, such as [Google, Meta]. They may receive information about your visit and may transfer it outside the European Economic Area under safeguards such as the EU Standard Contractual Clauses. Their own privacy policies explain how they use it.

Your choices When you first visit the store, we ask for your consent to all cookies except strictly necessary ones. You can change or withdraw your consent at any time through [cookie settings link]. Withdrawing consent does not affect the lawfulness of processing before you withdrew it. You can also delete or block cookies in your browser settings, but parts of the store may then not work.

Changes to this policy We update this policy when the cookies we use change. The date at the top shows the latest version.

Contact Questions about this policy: [email address].

  • On its own page, such as /pages/cookie-policy on a Shopify store, so it can be linked directly.
  • In the footer, next to the privacy policy, so it can be reached from every page.
  • In the cookie banner, so visitors can read it before they choose.
  • With a way to reopen the cookie settings, such as a link or a floating icon, because withdrawing consent must be as easy as giving it.

A cookie policy generator solves the part a template can’t: the list. Pandectes scans your store for cookies, local storage and pixels, describes each one from its cookie database, groups them into the same categories as your consent banner, and publishes the result as a cookie declaration on a page of your store. When a scan finds a new or changed cookie, the declaration updates itself and its last-updated date changes. You can add your own introduction above the list, such as the sections of the sample above.

Frequently asked questions

What is a cookie policy? A page that explains which cookies a website uses, what each one does, who sets it, how long it lasts and how visitors can accept or refuse them.

Do I need a cookie policy if I only use necessary cookies? In the EU and the UK, strictly necessary cookies need no consent, so you may not need a banner. You should still explain them, which can be a short cookie section in your privacy policy rather than a separate page.

What is the difference between a cookie policy and a cookie banner? The banner asks for consent and gives a summary of the purposes. The policy holds the detail: every cookie, its provider, purpose and duration. The banner should link to the policy.

Can I copy another website’s cookie policy? The structure, yes, but not the list of cookies. Another site’s cookies are not yours, and an inaccurate list means visitors are not properly informed, so their consent may not be valid.

How often should a cookie policy be updated? Whenever your cookies change, for example when you add an app, a pixel or an analytics tool. A scan-based cookie declaration does this automatically; a written policy needs to be checked after every change.

Is a cookie policy the same as a cookie notice or cookie declaration? Yes. The names are used interchangeably. “Cookie declaration” usually refers to the list of cookies itself.

More from the Knowledge Base

  • What Are Third-Party Cookies?

    What third-party cookies are, how they differ from first-party cookies, which browsers block them, how to block them yourself, and when a website needs consent for them.

  • What Is a Tracking Pixel? How Pixels Work and When They Need Consent

    A tracking pixel is a tiny image or script that reports a visit or an email open to a third party. How pixels work, what they collect and when they need consent.

  • What are cookies?

    What are internet cookies? Meaning, types of cookies, what they are used for, what accepting cookies means and when a website needs your consent.

Make your Shopify Store's use of cookies and online tracking compliant today

Try for free