Clean Cookie Consent — no tracking, no iron curtain.
This guide explains how to install, configure, test, and troubleshoot CCCP on a WordPress site.
CCCP is an opinionated cookie consent plugin for privacy-focused personal sites.
- Preferences (optional, blocked by default)
- Functional (optional, blocked by default)
- Analytics (optional, blocked by default)
- Marketing category
If your site needs marketing/advertising cookies, CCCP is intentionally not designed for that workflow.
- In WordPress admin, go to Plugins → Add New → Upload Plugin.
- Upload
cccp-1.0.0.zip. - Activate CCCP — Clean Cookie Consent.
- Go to Settings → Clean Cookie Consent.
- Open Settings → Clean Cookie Consent.
- In General:
- Keep default banner text or customize it.
- Keep cookie lifetime at
365days unless you need a different period. - Leave Cookie settings button enabled.
- Leave Clean cookies only badge enabled (optional, but recommended).
- In Scripts:
- Keep defaults first, then adapt after testing.
- In Appearance:
- Keep default primary color (
#cc0000) or set your own.
- Keep default primary color (
- Save each tab.
- Open Tools → Cookie Policy and click Create / Update Page.
Shown in the consent banner.
How long the cccp_consent cookie is valid.
Shows a floating button after consent exists so visitors can reopen the banner.
Shows a small footer badge with a GitHub link.
Enter one value per line:
- a WordPress script handle, or
- a script URL fragment
google-taggtaggoogle-tag-manager
youtube-iframe-apiyoutube.comvimeo.com
- empty
jquerywp-embed
Used for the Accept All button and active toggle state.
- Accept All
- Reject All
- Save preferences
- On each front-end request, PHP reads
cccp_consentcookie. - If missing or invalid, consent defaults to all
false. - Scripts in blocked categories are dequeued before output.
- Banner appears if no valid consent exists.
- Visitor chooses options.
- JavaScript writes the cookie and reloads once.
- Next load applies the saved choices server-side.
- Banner stays hidden; footer Cookie settings button can reopen it.
- Open an incognito/private window.
- Visit your site.
- Confirm banner appears.
- Confirm all three toggles are initially off.
- Click Accept All.
- Page reloads once.
- In browser DevTools → Application/Storage → Cookies, confirm
cccp_consentexists. - Value should contain JSON with booleans for preferences/functional/analytics.
- DevTools → Network.
- With no consent (or all false), verify configured scripts do not load.
- Enable category consent and reload.
- Verify matching scripts now load.
- Click Cookie settings floating button.
- Change toggles.
- Click Save preferences.
- Confirm one reload and updated cookie values.
In browser console:
document.cookie = "cccp_consent=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
location.reload();Banner should appear again.
Location: Tools → Cookie Policy
- Builds a policy text from your current CCCP settings.
- Includes privacy-first opening statement.
- Includes category sections based on configured lists.
- Mentions Google Analytics/GTM and YouTube/Vimeo when relevant.
- Includes withdrawal instructions, cookie lifetime, and last-updated date.
- Creates a page titled Cookie Policy if none exists.
- Updates the tracked policy page if it already exists.
- Publishes the page.
You can manually edit the page afterward. It is only overwritten when Create / Update Page is clicked again.
- Confirm HTML exists:
document.getElementById('cccp-banner') - Confirm style exists:
document.getElementById('cccp-frontend-style') - Check class on banner:
cccp-visiblemeans showcccp-dismissedmeans hidden due to existing valid consent
- If hidden and you want first-visit test, delete
cccp_consentcookie and reload.
Banner hidden but footer button visible
This means consent already exists. Click Cookie settings to reopen.
- Verify script identifier is correct (exact handle or unique URL fragment).
- Ensure identifier is in the correct category list.
- Hard refresh and retest.
- Test in private window to avoid stale cache/session state.
- Confirm it is not accidentally listed under another blocked category.
- Confirm it is not deregistered by another plugin/theme.
CCCP is designed to work on standard front-end renders and avoids admin/login/cron contexts.
- Keep script lists minimal and explicit.
- Prefer known script handles over broad URL fragments.
- Re-test consent flow after theme/plugin updates.
- Regenerate Cookie Policy page after major settings changes.
- No marketing category
- No implied consent
- No external SaaS dependency
- No plugin telemetry
- Consent stored in browser cookie only
CCCP is for site owners who intentionally choose less tracking and clearer privacy boundaries.