HomeToolsAdd a Cookie Consent Banner to WordPress

    Add a Cookie Consent Banner to WordPress

    No bloated consent plugin needed. Install a full consent banner on WordPress with one script tag — via a snippet plugin or your theme's footer — with script blocking and Consent Mode v2 included.

    One Script Tag
    GDPR & ePrivacy
    Consent Mode v2
    WordPress Specific
    4.9 out of 5on Trustpilot
    50,000+
    businesses protected
    www.yourwebsite.com
    Add a Cookie Consent Banner to WordPress
    What information do we collect?
    ✓ GDPR Compliant
    Auto-Updates
    Policy updates automatically
    2-Min Setup
    Generate in minutes

    The WordPress Install, Step by Step

    1

    Scan Your Site (Optional, Free)

    Run the free cookie scanner on your site — no account needed. When you build your banner, the cookie categories are pre-selected from what the scan actually found.

    2

    Create Your Banner in PolicyForge

    In the dashboard, open Consent Banner, pick your position, theme, and colors, enable Google Consent Mode v2 if you use Google tags, and save. You'll get a one-line embed snippet with your banner ID.

    3

    Paste the Snippet in Your Footer

    Easiest: install a snippet plugin like WPCode ("Insert Headers and Footers") and paste the snippet in the Footer section. Alternatively, add it before </body> in your child theme's footer.php, or via your theme's built-in custom-code panel if it has one.

    4

    Tag Trackers and Verify

    For scripts you control (GA4 snippet, Meta Pixel pasted in your theme), change them to type="text/plain" with data-consent-category so they wait for consent. Then load your site in a private window and confirm the banner shows and your consent log records the choice.

    On WordPress.com, custom scripts require a plan that allows plugins (Business or higher). Self-hosted WordPress has no restrictions.

    The Entire Install Is One Line

    <script src="https://policyforge.co/consent.min.js" data-policyforge-consent="YOUR-BANNER-ID"></script>

    Paste it into your site footer, before </body> — via a snippet plugin or footer.php.

    Blocking Trackers Until Consent on WordPress

    Tracking added through plugins (e.g. a plugin that injects GA4) can't always be re-tagged. Prefer pasting the tracking snippets yourself so you can gate them, or use Google Consent Mode v2 for Google tags — the banner sends the consent signals automatically. Avoid running two consent plugins side by side; remove any old cookie-notice plugin first.

    The Banner Needs a Cookie Policy Behind It

    GDPR expects the banner to link to a policy that discloses every cookie your WordPress site sets. Generate one tailored to WordPress — default cookies and common integrations included.

    WordPress Consent Banner FAQs

    What WordPress site owners ask before installing.

    Consent Sorted on WordPress in Minutes

    Banner, policies, scanner, and consent records — one plan, unlimited sites.

    Included in Pro ($15/month) • Free cookie scanner, no account needed