1ConsentConsentDocs

WordPress Integration

Add consent management to your WordPress site using the official 1Consent plugin — no code required.

Installation

Install the plugin

From the WordPress marketplace:

  1. In your WordPress admin, go to Plugins → Add New
  2. Search for "1Consent"
  3. Click Install Now, then Activate

Manual installation:

  1. Download from downloads.1consent.app/wordpress/1consent-latest.zip
  2. In your WordPress admin, go to Plugins → Add New → Upload Plugin
  3. Upload the .zip file and click Activate

Configure your App ID

  1. Go to Settings → 1Consent in your WordPress admin
  2. Enter your App ID (found in the 1Consent dashboard under Integrate)
  3. Click Save Changes

The consent banner will immediately appear on your site.

Plugin settings

SettingDescription
App IDYour unique 1Consent application identifier
StageLive (default) or Preview to test your unpublished changes before they go live

How it works

The plugin automatically:

  • Injects the 1Consent script into the <head> of every page
  • Loads before any third-party scripts for proper consent gating
  • Respects your CMP configuration from the 1Consent dashboard

Template-based blocking (advanced)

For performance-optimized setups, wrap third-party scripts in your theme with <template> tags:

<template data-1c-service-tag="google-analytics">
  <script src="https://www.googletagmanager.com/gtag/js?id=GA_ID"></script>
</template>

This prevents scripts from loading until the user grants consent for the associated service.

Troubleshooting

  • Verify your App ID is correct in Settings → 1Consent
  • Check that the plugin is activated
  • Ensure no caching plugin is serving a stale page — clear your cache

Conflicts with other plugins

The 1Consent plugin is designed to be lightweight and non-intrusive. If you experience conflicts:

  • Ensure the 1Consent script loads first (priority 1) in the <head>
  • Disable other consent/cookie plugins that may interfere

Need help? Reach out via the 1Consent dashboard or email [email protected].

On this page