Back|
C
Cookiestack
Sign inGet started

Cookie Banner for WordPress

Last updated: September 9, 2026

The WordPress plugin directory has dozens of cookie plugins, but almost all of them are built for GDPR's opt-in model with EU/US-style consent wording, and none of them store the consent log on servers located in Russia — which is exactly what Art. 18(5) of 152-FZ requires. Installing one "just to have a banner" is risky: the banner is visually present, but the site still isn't formally compliant.

Option 1: no plugins, via the theme

The most reliable approach is adding the tag under Appearance → Theme Editor → header.php, right before the closing </head> tag:

<script
  src="https://api.cookiestack.dev/widget.js"
  data-api-key="YOUR_API_KEY"
  async
></script>

If the theme gets auto-updated, create a child theme first — otherwise the header.php edit gets wiped on the next theme update.

Option 2: no code edits

If theme editor access is blocked (some hosts disable it for security), use any lightweight "insert code into head" plugin with no cookie-banner logic of its own, and add the same script tag there. Just don't run a separate cookie-consent plugin alongside it — two banners on the same page conflict visually and confuse visitors.

WooCommerce and plugins with their own cookies

WooCommerce, caching plugins, and analytics plugins (Jetpack Stats, MonsterInsights, etc.) often set cookies independently of any banner. Strictly necessary cookies (e.g. the WooCommerce cart) generally don't need consent under most cookie laws. Analytics or marketing scripts from those plugins are a different story — if they're embedded as a static tag in the theme or via another plugin, wrap them with type="text/plain" and data-cookie-category="statistics" (or marketing) — see the JavaScript API for details.

Yandex Metrica and Google Analytics via plugins

If Yandex Metrica is wired up through a separate analytics plugin, disable it there and enable the Yandex Metrica integration in your Cookiestack domain settings instead — the widget initializes the counter itself, only after the visitor consents to "Statistics".

Start for free →

This article is for informational purposes only and is not legal advice. WordPress admin panel layout varies by version and active theme.

Cookie Banner for WordPress