# Cookie Consent for WordPress

> A small, fast consent banner (no external service). Tracking scripts marked for consent only run after the visitor accepts. Part of Toggleworks, one plugin…

TW-COR-06 Core


A small, fast consent banner (no external service). Tracking scripts marked for consent only run after the visitor accepts.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Cookie Consent

**Part number**
: TW-COR-06
**Section**
: [Core](https://togglework.app/features/core/)
**Settings**
: 7
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

In the EU, the UK and a growing number of other places, analytics and advertising cookies need the visitor’s consent before they are set. Many consent tools are themselves heavy third-party scripts.

This one is a small banner served from your own site, and holds back tracking scripts until the visitor accepts.

### What it does

- A small, fast banner with no external service.
- Tracking scripts marked for consent run only after the visitor accepts.
- Accept and “Only essential” buttons, and a link to your privacy policy.
- Card or full-width bar, your button colour, and how long the choice is remembered (default 180 days).

![Cookie Consent settings screen in the Toggleworks WordPress plugin, showing Message, Accept button, Reject button, Privacy policy link](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/core-cookie-consent.webp?v=1795524158)

The Cookie Consent screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Write a short, honest message about what you use cookies for.
2. Keep the reject button visible (required in the EU and UK).
3. Make tracking wait for consent: [Google Analytics 4](https://togglework.app/features/marketing/analytics/) waits automatically, and other scripts wait when written as `<script type="text/plain" data-tw-consent="analytics">`. Then test in a private window.

## What you can set

Switch Cookie Consent on in Toggleworks → Core, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Message
- Accept button
- Reject button
- Privacy policy link
- Position
- Button color
- Remember the choice for

## Good to know

- A banner alone doesn’t make you compliant. Scripts must actually wait for consent, and your privacy policy must say what you collect.

## Comes with 187 more parts

Cookie Consent is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 27 Core parts](https://togglework.app/features/core/)

### People also look for it as

- gdpr
- cookies
- consent
- banner
- privacy
- analytics

## Often switched on with it

- [Visitor Stats](https://togglework.app/features/marketing/visitor-stats/) — TW-MKT-09 · Simple, cookie-free visitor statistics in your dashboard — daily views, top pages, referrers and devices — with no consent banner… · 3 settings
- [Announcement Bar](https://togglework.app/features/core/announcement-bar/) — TW-COR-01 · Show a dismissible message at the top of the site — sales, shipping notices, launches — with an optional button and schedule. · 9 settings
- [Header & Footer Code](https://togglework.app/features/core/header-footer-code/) — TW-COR-12 · Add analytics tags, pixels, meta tags or custom CSS to every page without editing the theme. · 5 settings
- [Search Log](https://togglework.app/features/core/search-log/) — TW-COR-21 · See what visitors type into your site search and which searches find nothing: a direct list of content to write and products to… · 2 settings
- [Bricks Dynamic Tags](https://togglework.app/features/bricks/dynamic-tags/) — TW-BRX-03 · Over 60 more dynamic data tags: reading time, “updated 3 days ago”, terms and custom fields, featured image details, author info… · Own screen in wp-admin
- [Google Analytics 4](https://togglework.app/features/marketing/analytics/) — TW-MKT-03 · Add GA4 without another plugin. The tracking script is cached on your own server, waits for cookie consent if enabled, and skips… · 5 settings

## Questions

**Is Cookie Consent included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Cookie Consent among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Cookie Consent slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Cookie Consent only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Cookie Consent before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/core/cookie-consent/
