Integrations
WordPress Plugin Setup
Step-by-step guide to installing our WordPress plugin
Step-by-step guide to installing the GetCookies WordPress plugin for cookie consent management.
Installation Methods
The plugin is not listed in the WordPress.org plugin directory. Download it from your GetCookies dashboard instead.
Upload the plugin
- Download the plugin ZIP from your GetCookies dashboard (Domains > Integrations)
- Go to Plugins > Add New > Upload Plugin
- Choose the ZIP file and click Install Now
- Click Activate Plugin
Configuration
Step 1: Connect Your Account
- Go to Settings > GetCookies in WordPress admin
- Enter your API Key (found in GetCookies Dashboard > Settings > API)
- Click Connect Account
Step 2: Select Your Domain
- Choose the domain from the dropdown that matches your WordPress site
- If not listed, add the domain in your GetCookies dashboard first
Step 3: Configure Settings
| Setting | Description | Recommended |
|---|---|---|
| Auto-block Scripts | Automatically block known tracking scripts | Enabled |
| Show Banner | Display cookie consent banner | Enabled |
| Widget Position | Where the preferences button appears | Bottom Left |
| Privacy Page | Link to your privacy/cookie policy | Select your policy page |
Advanced Features
Automatic Script Blocking
The plugin automatically detects and blocks common tracking scripts:
- Google Analytics / GA4
- Google Tag Manager
- Facebook Pixel
- Hotjar
- LinkedIn Insight
- And many more...
Shortcodes
Add cookie-related elements anywhere on your site:
[getcookies_settings]Displays the full cookie preferences interface inline.
[getcookies_button]Adds a "Manage Cookie Preferences" button.
PHP Functions
For theme developers:
<?php
// Check if user has consented to marketing cookies
if (getcookies_has_consent('marketing')) {
// Load marketing scripts
}
// Get all consent choices
$consent = getcookies_get_consent();
?>Troubleshooting
Banner not appearing?
- Check that the plugin is activated
- Verify your API key is correct
- Clear any caching plugins
- Check browser console for JavaScript errors
Scripts still loading before consent?
- Enable "Auto-block Scripts" in settings
- For custom scripts, add the
data-cookiecategoryattribute:
<script data-cookiecategory="marketing" src="tracking.js"></script>Caching Issues
If using caching plugins (WP Super Cache, W3 Total Cache, etc.):
- Exclude the GetCookies JavaScript from caching
- Clear cache after changing settings
- Consider using "Fragment Caching" for the consent banner
Still stuck?
Email [email protected] with your domain and what you tried. Signed-in customers can also open a ticket from the dashboard.