Stella Cookies is a WordPress cookie consent plugin for managing a cookie banner, consent categories, and third-party content controls for analytics, marketing, and embedded services.
The plugin includes support for Google Consent Mode v2, configurable consent categories, script blocking patterns, iframe blocking, cookie policy content, and a built-in shortcode for displaying your cookie policy and cookie declaration page.
It is built for site owners who need a configurable cookie banner and for developers who need flexible controls for consent-based script loading.
[stella_cookies_policy] shortcode for policy and consent reset display.= Upgrade to Pro âš¡=
Stella Cookies Pro extends the free plugin with advanced compliance tools including cookie scanning, staged scan review, scan history, email alerts, consent logs, analytics reporting, geo targeting, Global Privacy Control support, GTM sync, and additional banner branding controls.
This plugin does not make direct HTTP requests to any external service or API on its own.
However, the plugin includes built-in script-blocking pattern lists that reference well-known third-party domain strings. These strings are used locally to match and block scripts loaded by your own site before consent is granted. No data is sent to these domains by the plugin itself.
The following third-party domains are referenced in the built-in blocking pattern defaults:
Pattern used: googletagmanager.com/gtag, google-analytics.com
These patterns allow the plugin to identify and block Google Analytics and Google Tag Manager scripts until the visitor consents to the Statistics category.
If your site loads Google tags, those tags will connect to Google’s servers. Please refer to Google’s own terms and privacy policy:
* Terms of Service: https://marketingplatform.google.com/about/analytics/terms/us/
* Privacy Policy: https://policies.google.com/privacy
Pattern used: connect.facebook.net
This pattern allows the plugin to identify and block Facebook/Meta Pixel scripts until the visitor consents to the Marketing category.
If your site loads the Meta Pixel, it will connect to Meta’s servers. Please refer to Meta’s own terms and privacy policy:
* Terms of Service: https://www.facebook.com/legal/terms/businesstools
* Privacy Policy: https://www.facebook.com/privacy/policy/
The plugin also includes built-in blocking patterns for other common analytics and advertising services including clarity.ms (Microsoft Clarity), hotjar.com, doubleclick.net (Google Ads), googleadservices.com, googlesyndication.com, ads-twitter.com, platform.twitter.com, tiktok.com, snap.licdn.com, ct.pinterest.com, matomo, plausible.io.
All of these patterns are used solely to match and block third-party scripts on your own site. The plugin itself does not transmit any data to these services. Data transmission to these services only occurs after the visitor grants consent, or if the scripts are loaded by other means outside the plugin’s control.
The safest and most WordPress-native way to load scripts is using wp_enqueue_script(). Stella Cookies will automatically detect and block these enqueued scripts based on your consent settings.
Please do not paste raw <script> tags directly into your theme templates (header.php, footer.php, etc.). Hardcoded raw scripts cannot be reliably blocked without causing conflicts with other plugins.
If you are a developer and absolutely must output a script manually, please use the provided helper functions. These functions will automatically enforce the user’s consent choice without rewriting the whole page.
For external scripts:
stella_cookies_script( ‘https://connect.facebook.net/en_US/fbevents.js’, ‘marketing’ );
For inline scripts:
php
stella_cookies_inline_script( "
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
", 'statistics' );