Follow these steps to install SimpleCookie on your WordPress site.
⚡ Auto-blocking: SimpleCookie automatically blocks tracking scripts (Google Analytics, Facebook Pixel, Hotjar etc.) until the user gives consent. You do not need to change your existing scripts.
⚠️ Important: The SimpleCookie script must be the first script tag in the head of your site — before all other scripts.
Method 1: Plugin (recommended)
- Install the WPCode plugin (Insert Headers and Footers).
- Go to Code Snippets → Header & Footer.
- Insert your SimpleCookie script in the Header section (top, as the first script).
- Click Save Changes.
Method 2: Theme editor
- Log in to your WordPress admin panel.
- Go to Appearance → Theme Editor.
- Select the file header.php.
- Insert your SimpleCookie script as the first script tag inside the head section.
- Click Update File.
Language selection
The banner supports 9 languages. Add ?lang=xx to the embed URL to display the banner in a specific language:
<script src='https://simplecookie.eu/embed/[your-id].js?lang=en'></script>Language codes: da Danish · de German · sv Swedish · en English · fr French · nl Dutch · pl Polish · es Spanish · it Italian