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:
- In your WordPress admin, go to Plugins → Add New
- Search for "1Consent"
- Click Install Now, then Activate
Manual installation:
- Download from downloads.1consent.app/wordpress/1consent-latest.zip
- In your WordPress admin, go to Plugins → Add New → Upload Plugin
- Upload the
.zipfile and click Activate
Configure your App ID
- Go to Settings → 1Consent in your WordPress admin
- Enter your App ID (found in the 1Consent dashboard under Integrate)
- Click Save Changes
The consent banner will immediately appear on your site.
Plugin settings
| Setting | Description |
|---|---|
| App ID | Your unique 1Consent application identifier |
| Stage | Live (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
Banner not appearing
- 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].