Home / Fix guides / Analytics, cookies and GDPR

How to create a cookie policy for your website

A cookie policy is a page that lists the cookies your site sets, what each one is for, how long it lasts and how visitors can change their choice. To create one, scan your site for cookies, describe each one in plain English, publish the page and link it from your footer and cookie banner.

Many small business sites set cookies without telling anyone. The site uses Google Analytics, a chat widget or an embedded video, but there is no page explaining it. If a visitor (or a regulator, or a customer's lawyer) looks for a cookie policy and finds nothing, that is the problem this page helps you fix.

This is general guidance, not legal advice. If you sell in regulated sectors or handle sensitive data, have a qualified person review your final text.

What the problem looks like

You will usually see one or more of these:

  • There is no page called Cookie Policy, Cookie Notice or similar anywhere on the site.
  • The footer links to a privacy policy but nothing about cookies.
  • Your cookie banner has no link, or its Learn more link goes to a 404 or to the home page.
  • A privacy policy exists but never names the cookies or tools you actually use.

Some sites cover cookies inside the privacy policy, and that can be fine if it is clear and specific. The problem is when cookies are not explained anywhere.

Why it matters

If your site has visitors in the EU or UK, privacy rules (GDPR and the ePrivacy rules behind cookie consent) expect you to tell people clearly what is stored on their device and why, before you ask for consent. A banner with no explanation behind it is weak consent.

There is also a trust angle. Shoppers who click Learn more and find nothing may leave before buying. Ad platforms and analytics vendors also expect you to have proper disclosure on your site.

How to check if your site has the problem

These checks are free and take about ten minutes:

  1. Open your site in a private window and scroll to the footer. Look for a link mentioning cookies or privacy.
  2. Open your cookie banner (if you have one) and click every link in it. Note where each goes.
  3. Search Google for site:yourdomain.com cookie policy (replace with your domain). No results usually means no page.
  4. See which cookies you actually set. In Chrome, press F12, open the Application tab and look under Cookies. In Firefox, the same list is under the Storage tab. Do this before you accept any banner, then again after.
  5. Compare that list with what your pages say. Every cookie you find should be explained somewhere.

If you want this checked automatically, week 28 of SiteMonday covers privacy policy and terms, and week 27 covers GDPR and cookie consent. It reports what it finds, but writing and publishing the page is up to you or your developer.

What a cookie policy should contain

Keep it short and specific. A good page includes:

  • What cookies are, in one or two sentences.
  • The categories you use: strictly necessary, preferences, analytics, marketing.
  • A list of the actual cookies, with provider, purpose and lifespan.
  • Which third parties set cookies (for example Google, Meta, YouTube, a chat tool).
  • How visitors can change or withdraw consent, ideally with a link or button to reopen your banner settings.
  • How to block or delete cookies in common browsers.
  • Your contact details and the date the page was last updated.

A short example of the cookie list:

CookieSet byPurposeTypical lifespan
_gaGoogle AnalyticsTells visitors apart for statisticsUp to 2 years
_ga_XXXXXXXXXXGoogle Analytics 4Keeps session stateUp to 2 years
Your banner's own cookieYour consent toolRemembers the visitor's choiceSet by your tool

Lifespans depend on your configuration, so use the values you see in your own browser list, not the ones above.

How to create the page

  1. Get the real cookie list. Use the browser check above, or the cookie scanner built into a consent tool such as Cookiebot, CookieYes, iubenda or Termly. Scan again after you add any new tool.
  2. Generate or write the text. Consent tools usually offer a cookie policy that fills itself from the scan. Otherwise write it yourself using the checklist above. Plain English beats legal wording.
  3. Publish it as a normal page. Call it Cookie Policy and give it a clear address such as /cookie-policy.
  4. Link it everywhere it is needed. Add it to your footer, to your cookie banner and to your privacy policy. If you have no privacy policy either, see no privacy policy page.
  5. Add a way to change consent. A small Cookie settings link in the footer is common. Your consent tool usually provides a snippet or shortcode for this.

A policy is not a replacement for a working banner. If visitors cannot see or use your banner, read cookie banner not showing. If it appears but offers no clear way to decline, see cookie banner with no reject button.

Where things usually are on common platforms

Menu names change between versions and themes, so look for the idea rather than the exact label.

  • WordPress: create the page under Pages, then add it to your footer through Appearance and Menus or the Site Editor. A consent plugin may create the page for you. Settings and Privacy is for the privacy policy page.
  • Shopify: policies live under Settings and Policies. A separate cookie page is usually made under Online Store and Pages. Cookie banner settings are under Settings and Customer privacy.
  • Wix, Squarespace, Webflow: add a normal page, then add it to the footer in the site editor. Each has its own cookie banner settings in site settings.
  • WooCommerce: same as WordPress, and remember checkout and payment tools can set cookies too.
  • Ghost: create a page in the admin and add it to the secondary navigation, which usually shows in the footer.

How to confirm the fix worked

  • Open the page in a private window and check it loads without logging in.
  • Click the link from the footer and from the banner. Both should arrive at the same page.
  • Clear your cookies, load the site, and compare the cookie list in your browser against the table on your page.
  • Check that the banner choice actually changes what is set. Analytics and marketing cookies should not appear before consent. If they do, see the consent problems linked above.
  • Check the page on your phone.

How to stop it coming back

  • Rescan your cookies every time you add a plugin, a tracking pixel, a video embed or a chat tool.
  • Put a recurring reminder in your calendar, for example every quarter, to review the page and update the date.
  • Ask whoever adds new tools to tell you first, so the policy stays accurate.
  • If you redesign or change platform, check the footer link and the page address survive the move.

Step by step for your platform

Questions

Do I need a separate cookie policy or can it go inside my privacy policy?

Either can work as long as cookies are explained clearly and visitors can find the information easily. Many sites use a separate page because the cookie list changes more often.

Can I copy another website's cookie policy?

It is not a good idea. Their cookies and tools will differ from yours, so the copy will be inaccurate, and the text may be protected by copyright.

Do I need a cookie policy if I only use Google Analytics?

Yes, if your visitors include people covered by GDPR or the ePrivacy rules, because Analytics sets cookies and you should explain them and ask for consent where required.

How often should I update my cookie policy?

Update it whenever you add or remove a tool that sets cookies, and review it at least a few times a year. Change the last updated date each time.

Is a cookie policy the same as a cookie banner?

No. The banner asks for consent and the policy explains the details. You normally need both, with the banner linking to the policy.

Will a cookie policy make my site legally compliant?

Not on its own. You also need a working consent banner, no non-essential cookies before consent, and an accurate privacy policy. For legal certainty, ask a qualified adviser.

Related problems