Security 5 min read

GDPR and cookie consent for business websites

GDPR and cookie consent for business websites explained: what needs consent, compliant banners, Google Consent Mode, privacy policies, forms, data requests and tools.

Usman Muhammad UsmanUpdated October 13, 2026
GDPR and cookie consent for business websites

If your website has visitors from the UK or European Union, data protection laws affect how you use cookies, analytics, forms and marketing tools. Many sites have a cookie banner that does not actually do anything, which offers little protection. This guide explains the practical steps I take on client sites. It is general information, not legal advice; check your obligations with a qualified adviser.

Which laws apply

In the EU, the GDPR governs personal data, and the ePrivacy Directive governs cookies and similar technologies. In the UK, the UK GDPR and PECR play the same roles. Other regions have their own laws, such as CCPA and CPRA in California, with different requirements.

These laws can apply to businesses outside those regions if they offer services to or monitor people there. If you have UK or EU visitors or customers, assume they apply.

What counts as personal data

Personal data is any information that identifies a person directly or indirectly: names, emails, phone numbers, IP addresses, cookie identifiers, order histories and analytics identifiers. Most business websites process personal data through forms, analytics and marketing tags.

Knowing what you collect, why and where it goes is the starting point for compliance.

Cookie compliance steps
  1. 1AuditCookies and scripts
  2. 2Consent toolBlocks until consent
  3. 3Consent ModeGoogle tags
  4. 4Privacy policyAccurate and clear
  5. 5ReviewAfter every change

Strictly necessary cookies, such as those for logins, shopping carts and security, do not need consent. Analytics, advertising, social media and most third-party tracking cookies do need consent before they are set, under UK and EU rules.

The same applies to similar technologies such as tracking pixels and local storage. Audit your site to see which cookies and scripts load and what they do.

What a compliant banner does

A compliant banner asks for consent before non-essential cookies load, explains what they are for, makes rejecting as easy as accepting and lets visitors choose categories. It must actually block scripts until consent is given, not just display a message.

Pre-ticked boxes, hidden reject buttons and ‘by continuing to browse you accept’ are not valid consent under UK and EU rules.

Consent management platforms such as Cookiebot, CookieYes, Complianz, Iubenda and others scan your site, categorise cookies, display banners and block scripts until consent is given. Many integrate with WordPress, Shopify and Google tools.

Choose one that supports Google Consent Mode, blocks scripts reliably, keeps consent records and lets visitors change their choices later.

Google Consent Mode adjusts how Google Analytics and Ads tags behave based on consent choices. When visitors decline, tags send limited, cookieless signals, and Google uses modelling to estimate missing conversions. Google requires Consent Mode for some features for UK and EU traffic.

Set it up through your consent tool and Tag Manager or the Google tag. See setting up Google Analytics 4.

Privacy policy

Your privacy policy explains what personal data you collect, why, the legal basis, who you share it with, how long you keep it, where it is transferred and how people can exercise their rights. Write it in clear language and keep it accurate.

Generic templates often list tools you do not use and miss ones you do. See the legal pages your website needs.

Contact forms collect personal data to reply to enquiries, which is usually lawful without a consent checkbox, but you must explain the use in your privacy policy, ideally with a link near the form. Marketing sign-ups need separate, unticked consent.

Store entries securely, limit access and delete them when no longer needed. See WordPress contact form setup.

Embedded content

YouTube videos, Google Maps, social feeds and similar embeds can set cookies and send data to third parties as soon as they load. Use privacy-enhanced modes, load embeds only after consent or use click-to-load placeholders.

Facades for video embeds also improve speed. See embedding YouTube videos without slowing your page.

Data subject requests

People have rights to access, correct, delete and receive their data, and to object to some processing. Have a simple process to handle requests within the legal time limit. WordPress includes tools to export and erase personal data under Tools.

WooCommerce and many plugins integrate with these tools. Keep a record of requests and responses.

Security is part of compliance

Data protection laws require appropriate security for personal data. Keeping the site updated, using HTTPS, protecting admin accounts with 2FA and restricting access to form entries and orders are part of meeting those obligations.

A data breach may need to be reported to authorities within a short deadline. See my security hardening checklist.

Review regularly

Every new plugin, tag or embed can add cookies or data sharing. Rescan the site with your consent tool after changes, update the privacy policy and review consent settings at least yearly.

Make privacy part of your monthly maintenance routine.

Getting help

I set up consent tools, Consent Mode and privacy-friendly embeds as part of every WordPress build and audit existing sites through my website protection service. For legal wording, consult a qualified adviser.

For tracking that respects consent, see third-party scripts.

Key takeaways

  • Analytics and marketing cookies need consent for UK and EU visitors.
  • A banner must actually block scripts and make rejecting easy.
  • Use Google Consent Mode with your consent platform.
  • Keep the privacy policy accurate and rescan after site changes.

Frequently asked questions

Do I need a cookie banner?

If you use non-essential cookies and have UK or EU visitors, yes.

Is Google Analytics allowed under GDPR?

It can be used with proper consent, configuration and privacy information.

Do contact forms need a consent checkbox?

Not usually for replying to enquiries, but marketing sign-ups need separate consent.

Can I use a free cookie plugin?

Yes, if it blocks scripts before consent and records choices properly.

What happens if I do not comply?

Regulators can issue fines and orders. Complaints from users are a common trigger.

Does Shopify handle cookie consent?

Shopify offers customer privacy settings and a banner, but you must configure them for your store.

Free website audit

Get a free audit of your website

Tell me your URL and I'll send a short, prioritized list of the speed, SEO and security fixes that will make the biggest difference.

  • No obligation, no sales call
  • 5.0 rating on Google and Upwork
  • Reply within one business day
Written by Muhammad UsmanWeb Development Team Lead with 5+ years building WordPress, WooCommerce, Shopify and Wix websites. Experience · Certificates About me

More on Security

All Security articles

Have a project in mind?

Tell me what you're building and I'll reply with next steps and an estimate.