Platforms
WordPress
Install allowedit on WordPress without a plugin of ours: add the script to the head with your theme, a header plugin or Tag Manager, then remove old banners.
There is no allowedit plugin for WordPress, and you don't need one. allowedit is a single script tag, and WordPress gives you several ways to put it in the head of every page. Pick one of the three below.
Before you start
- Create a free account, add your site and copy your script tag from the dashboard (open the site; it's on the Overview).
- Deactivate any other cookie banner plugin. Two consent tools on one site fight over the same scripts and show visitors two banners.
Option 1: a header code plugin (easiest)
Most sites use a small plugin that adds code to every page's head, such as a "header and footer scripts" or code snippets plugin. The menu names vary by plugin.
- Install and activate the plugin you prefer.
- Open its settings and find the field for the header (code added before
</head>). - Paste your allowedit script tag. If the field already holds other tracking code, put allowedit above it.
- Save.
<script src="https://allowedit.com/c/<siteId>.js"></script>
Option 2: your theme
If you use a child theme, you can add the tag with the wp_head hook in its functions.php. A priority of 1 runs it before most other head output:
add_action( 'wp_head', function () {
echo '<script src="https://allowedit.com/c/YOUR_SITE_ID.js"></script>' . "\n";
}, 1 );
Replace YOUR_SITE_ID with the id from your dashboard. Don't edit a parent theme's files directly: a theme update overwrites them.
Some block themes and page builders have their own field for head code in their settings. That works too, as long as nothing else is placed above it.
Option 3: Google Tag Manager
If your site already loads GTM, still put the allowedit script in the page's head with option 1 or 2, above the GTM snippet. Don't load allowedit as a tag inside GTM: it would run too late to set Consent Mode defaults. See Google Tag Manager for triggers and Consent Mode.
Watch out for caching and optimisation plugins
Caching, minification and "performance" plugins often rewrite scripts. Some delay JavaScript until the visitor interacts with the page, combine files, or add defer. Any of these can make allowedit run after your trackers.
- Exclude
allowedit.comfrom "delay JavaScript", "defer" and "combine" settings. - Purge the page cache after adding the script.
- Check the page source on the live site: the allowedit tag should still be first in the head, unchanged.
Plugins that add tracking
Plugins that add Google Analytics, the Meta Pixel or other tags usually print them in the head. allowedit handles them in two ways:
- Google tags read the Consent Mode signals allowedit sets, so they respect the visitor's choice.
- Known trackers such as the Meta Pixel, Hotjar and Microsoft Clarity are held by auto-blocking until their category is allowed.
For anything allowedit doesn't recognise, add a custom rule or mark the script yourself.
Embeds in posts
YouTube videos and Google Maps embedded in posts are blocked until the visitor allows marketing, and show a placeholder with a button to load them. You don't need to change your posts.
Add a cookie settings link
Add a link to your footer menu (Appearance, then Menus, or the Site Editor) with the URL #cookie-settings. Clicking it opens the preferences panel.
Check it works
Open your site in a private window, choose Reject all, and check in your browser's developer tools that no analytics or marketing cookies appear. Then run a scan from your dashboard to see what your plugins set. The scanner flags any cookie set before consent.
Still stuck? Email support@allowedit.com with your site's address and what you see.