Mortar Consent asks visitors before your site sets optional cookies or loads third-party content, and keeps their choice. It runs entirely on your own WordPress site: no account, no external service and no telemetry.
Fair by design
- “Accept all”, “Reject all” and “Manage preferences” sit side by side with the same styling.
- Nothing optional is pre-ticked, and the page stays usable while the banner is open.
- Visitors choose per category (functional, analytics, marketing, or your own) and can change their mind at any time from a “Cookie settings” button or link.
- Visitors are asked again when your cookie policy version changes or their consent expires.
Blocks what needs consent
- Scripts wait for consent: pick them by script handle in the settings, or mark hand-written tags with
type="text/plain" data-mortar-consent="analytics". Scripts that depend on a blocked script wait too.
- YouTube, Vimeo, Google Maps, Spotify and other embeds become click-to-load placeholders. Embeds from unknown third-party hosts are held back as well.
- When a visitor withdraws consent, known cookies in that category are deleted.
Works with the rest of your stack
- Google Consent Mode v2, with defaults set before any Google tag runs.
- Global Privacy Control: when the browser sends it, “Accept all” leaves marketing off.
- The WP Consent API, so other plugins can follow the visitor’s choice.
- Safe with full-page caching: every visitor gets the same HTML.
Records and declares
- A consent log stores each choice with a random consent ID, the policy version and the time, but no IP address, browser details or user account. Look up a consent ID or export the log as CSV.
- A Cookie declaration block lists every category and cookie for your cookie policy page.
- Suggested privacy policy text is added to Settings → Privacy → Policy Guide.
Accessible and light
- Built on the native dialog element, keyboard operable and tested against WCAG 2.2 AA.
- The visitor script is under 5 KB gzipped, with no dependencies.
- Restyle it from your theme with CSS custom properties, or replace the styles entirely.
Mortar Consent is a tool, not legal advice. It does not find trackers by itself, and you are responsible for configuring it to match the cookies and services your site uses.
Mortar Consent is made by Mortar Digital, a WordPress studio that designs, builds, hosts and looks after WordPress sites. It runs on every site we build.