Home › Blog › Data protection
Data protection

Cookie consent for online shops in Kenya: what the Data Protection Act asks of you

By Judah Mwatee · 21 October 2026 · 7 min read
A developer working on a laptop, checking what a website loads
Most online shops load far more scripts than their owners remember adding. Photo: Daudi Mukiibi / Wikimedia Commons, CC BY-SA 4.0.

If you sell online from Kenya, on Shopify, WooCommerce or a site with M-PESA checkout, your store almost certainly loads more than you think: Google Analytics, a Meta or TikTok pixel, a chat widget, embedded videos. So what does cookie consent for online shops in Kenya actually require?

The short answer: Kenya has no cookie law as such, but the Data Protection Act, 2019 still reaches most of the trackers on a typical store. Here is why, what the Office of the Data Protection Commissioner (ODPC) says valid consent looks like, and a checklist for this week. This is a plain guide, not legal advice.

Does Kenyan law say anything about cookies?

Not directly. The DLA Piper data protection guide for Kenya notes that Kenyan law does not specifically regulate online privacy, and the Data Protection (General) Regulations, 2021 set no cookie rules of their own.

That is not the end of it. The Act covers any information relating to an identified or identifiable person. A cart cookie that only remembers what is in the basket is one thing. A pixel that follows a visitor across sites, builds an advertising audience or links browsing to a customer’s phone number and order history is handling personal data. Once that happens, the Act’s general rules apply to your cookies like everything else:

What valid consent looks like, according to the ODPC

The ODPC adopted its Guidance Notes on Consent in November 2023. Explaining consent to the Nation, the Data Commissioner’s office set out four tests. Consent must be:

Two more points matter for a cookie banner: the person can withdraw consent at any time, and it is the business, not the customer, who must prove that consent was given.

Common cookie banners, held up against those tests

What the banner doesHow it sits with the ODPC tests
“By using this site you agree to cookies”, with only an OK buttonWeak. Carrying on browsing is close to silence, and the visitor has no real choice.
Pre-ticked boxes for analytics and marketingWeak. A box the visitor never ticked is not a clear indication of their wishes.
Big “Accept all”, with “Reject” hidden two screens deepQuestionable. Hard to call consent freely given when saying no takes far more effort.
A banner, but the pixels fire before anyone clicksThe banner says one thing and the site does another. The data has already gone.
Accept and Reject equally easy, choice by category, trackers held until a choice, a “Cookie settings” link to change your mindMuch closer to what the Act and the ODPC describe, especially if you keep a record of each choice.

The trackers a typical Kenyan online shop loads

These are the usual groups:

A common surprise: a theme or plugin you installed months ago may be loading trackers nobody on your team remembers adding.

An 8-step cookie consent checklist for your store

StepWhat to do
1. List what loadsScan the live store. Note every cookie, pixel and script, and who it sends data to.
2. Sort itStrictly necessary, analytics, advertising, embedded content. Remove anything you no longer use.
3. Hold non-essential trackersAnalytics and advertising tags should wait until the visitor says yes.
4. Make Accept and Reject equalSame size, same screen, plain words. Offer choice by category.
5. Update your privacy noticeName the trackers, what they collect, why, where the data goes and how to contact you.
6. Keep a recordThe burden of proof is yours. Keep a record of what each visitor chose and when.
7. Let people change their mindsPut a “Cookie settings” link in your footer so withdrawing is as easy as agreeing.
8. Re-check regularlyEvery new plugin, theme update or ad campaign can add a tracker. Scan again after changes.

While you are at it, check whether you need to register with the ODPC as a data controller. In June 2026 the Commissioner reminded businesses that registration is mandatory for eligible entities. According to DLA Piper, businesses with an annual turnover below KES 5 million and fewer than 10 employees are exempt, unless they work in a listed sector such as education, health, financial services or gambling. Kenyans.co.ke lists registration fees from KES 4,000 for micro and small entities, with a certificate valid for two years.

Running WordPress or WooCommerce? There is a plugin for that

Most Kenyan online shops we see run on WordPress with WooCommerce. For them, steps 3, 4 and 7 can be handled by a plugin rather than custom code. The Lexiscript Consent & Privacy plugin is now listed in the WordPress.org plugin directory, which means it went through WordPress’s own plugin review before being published.

It needs WordPress 6.0 or newer and PHP 7.4 or newer. Scanning is free; the consent banner itself needs a paid Lexiscript plan.

What is at stake

Under section 63 of the Act, the ODPC can impose an administrative fine of up to KES 5 million or 1% of the previous year’s annual turnover, whichever is lower. The office has used that power: in April 2023 it fined two companies KES 5 million each, as Citizen Digital reported. Those cases were about unsolicited messages, not cookies, but they show that customer complaints reach the ODPC and get acted on.

How Lexiscript helps

Lexiscript is our privacy-compliance scanner for online stores, built here in Nairobi. It does the slow part of steps 1, 2 and 8 for you: it scans your store, lists what loads, and maps each tracker to the privacy law that applies. You can read more on how it works and in our guide to cookie consent and the Kenya Data Protection Act.

Two honest notes. Lexiscript is a tool to help you see and fix problems, not a guarantee that your store complies with the law. And the notices it generates are starting drafts, not legal advice: have a lawyer review them before you rely on them. If you need a new store built with privacy in mind from day one, our web design team in Nairobi can help.

Cookie consent in Kenya: questions online sellers ask

Does my online shop need a cookie banner in Kenya?

Kenya has no cookie-specific law, but if your store uses analytics or advertising trackers that handle personal data, the Data Protection Act's consent and notice rules apply. A banner that asks for clear consent before those trackers load is the practical way to meet them.

Is “by using this site you agree” enough?

It is unlikely to be. The Data Commissioner's office has said that silence is not consent, and consent must be an express, clear indication of the person's wishes.

What is the fine for breaking the Data Protection Act?

The ODPC can impose an administrative fine of up to KES 5 million or 1% of the previous year's annual turnover, whichever is lower.

I run my shop on WordPress or WooCommerce. Is there a plugin?

Yes. The Lexiscript Consent & Privacy plugin is listed in the WordPress.org plugin directory. It adds the Lexiscript consent banner and holds trackers until the visitor chooses. Scanning is free; the consent banner needs a paid Lexiscript plan.

Does Lexiscript make my store compliant?

No tool can promise that. Lexiscript scans your store, maps each tracker to the law that applies and, on PRO, adds a consent widget, monthly re-scans and an audit trail. Its notices are generated starting drafts, not legal advice.

Sources

Find out what your store loads before your customers do

Run a free Lexiscript scan of your online shop: the full report, no card required. When you want monthly re-scans, a consent widget and an audit trail, PRO is KES 2,500 a month.

Run a free scan → See Lexiscript pricing
← Back to all articles

Get new guides by email

Practical M-PESA, tax and management tips for Kenyan schools & businesses, from Jaydee Innovation Hub. No spam; unsubscribe anytime.