Description
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.
Free Features 🚀
- Enable or disable the cookie banner from one settings screen.
- Support for Google Consent Mode v2 workflows.
- Block analytics and marketing scripts until consent.
- Optional strict prior blocking for uncategorized third-party scripts.
- Configure statistics and marketing script patterns.
- Configure allowlist patterns for trusted scripts.
- Optional iframe blocking for embedded third-party content.
- Consent version control for resetting consent after policy changes.
- Cookie Policy content editor.
- Cookie declaration list for transparency pages.
[stella_cookies_policy]shortcode for policy and consent reset display.- Banner design templates and custom styling controls.
- Button text, color, and font size customization.
- Preference manager with necessary, statistics, and marketing controls.
- Floating badge option to reopen consent controls.
- Live admin preview for banner design changes.
- In-admin help guide and system status summary.
Who It Is For
- Website owners who need a configurable consent banner.
- Agencies managing privacy compliance across client sites.
- Developers who need finer control over script loading behavior.
- Businesses that want a clean free plugin and an upgrade path to advanced compliance workflows.
= 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.
External services
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:
Google Tag Manager / Google Analytics
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
Meta (Facebook) Pixel
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/
Other built-in patterns
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.
Developer API (Hardcoded Scripts)
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' );
Screenshots

Main General Settings screen with banner enable, consent handling, script blocking, and cookie list options. 
Banner Design screen with template selection, styling controls, and button customization. 
Live admin banner preview showing the design demo in real time. 
Frontend cookie banner displayed in the default slide-up layout. 
Frontend cookie banner in centered modal layout. 
Preferences panel with Necessary, Statistics, and Marketing category controls. 
Floating badge that lets visitors reopen consent preferences later. 
Cookie Policy page using the [stella_cookies_policy]shortcode.
Cookie declaration table displayed on the policy page. 
Help guide tabs inside the Stella Cookies admin screen. 
System Status sidebar showing the current banner configuration summary. 
Script blocking and iframe blocking settings for compliance-focused configurations. 
Strict Prior Blocking, categorized script pattern fields, and allowlist controls. 
Customized banner with edited colors, copy, and button labels.
Installation
- Upload the
stella-cookiesfolder to the/wp-content/plugins/directory. - Activate Stella Cookies through the WordPress Plugins screen.
- Open the
Stella Cookiesadmin menu. - Enable the banner and configure your consent settings.
- Create or edit your cookie policy page and add the
[stella_cookies_policy]shortcode.
FAQ
-
Does this plugin support GDPR and CCPA workflows?
-
The plugin is designed to help with common GDPR and CCPA consent workflows by giving you control over banner behavior, category-based consent, policy display, and optional script blocking. You should still review your final legal wording and compliance process for your specific jurisdiction and business.
-
Yes. Stella Cookies includes Google Consent Mode v2 support for consent-aware setups.
-
Add the
[stella_cookies_policy]shortcode to a page. This can display your policy content, consent status tools, and cookie declaration output depending on your settings. -
Can I block scripts until consent is granted?
-
Yes. You can configure script pattern matching for statistics and marketing scripts, and optionally enable stricter prior blocking behavior.
-
Can I block embedded content such as videos or maps?
-
Yes. Stella Cookies includes iframe blocking controls for supported third-party embeds.
-
Yes. You can enable the floating badge so visitors can reopen consent controls after their initial choice.
-
Yes. The Banner Design tab includes a live admin preview to help you adjust layout, colors, and button styles.
-
What does the Pro version add?
-
The Pro version adds cookie scanning, staged review before updating the cookie list, scheduled scans, scan alerts, consent logs, analytics, geo targeting, Global Privacy Control detection, GTM sync, and more advanced design options such as banner logos.
Contributors & Developers
“Stella Cookies” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Stella Cookies” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.
