Title: ConsentSprout – Cookie Consent Manager
Author: Anand Bajrangi
Published: <strong>October 31, 2026</strong>
Last modified: October 31, 2026

---

Search plugins

![](https://ps.w.org/consentsprout/assets/banner-772x250.png?rev=3776542)

![](https://ps.w.org/consentsprout/assets/icon.svg?rev=3776542)

# ConsentSprout – Cookie Consent Manager

 By [Anand Bajrangi](https://profiles.wordpress.org/anandbajrangi/)

[Download](https://downloads.wordpress.org/plugin/consentsprout.1.0.3.zip)

 * [Details](https://wordpress.org/plugins/consentsprout/#description)
 * [Reviews](https://wordpress.org/plugins/consentsprout/#reviews)
 *  [Installation](https://wordpress.org/plugins/consentsprout/#installation)
 * [Development](https://wordpress.org/plugins/consentsprout/#developers)

 [Support](https://wordpress.org/support/plugin/consentsprout/)

## Description

ConsentSprout displays a configurable consent banner and preference panel. Visitors
can accept all optional categories, reject them, or choose functional, analytics,
and marketing categories separately. Necessary storage is always enabled.

Consent choices are stored in the visitor’s browser using localStorage. ConsentSprout
does not send consent records to a remote server and does not set cookies or collect
personal data. If browser storage is blocked, a choice remains effective only for
the current page view.

This plugin is a technical consent tool. It does not guarantee legal compliance.
Site owners are responsible for configuring the plugin and integrations for their
own legal and operational requirements. ConsentSprout cannot automatically detect
or block every script from themes, plugins, tag managers, or custom code; those 
integrations must be configured by the site owner.

No external services, remote assets, analytics, or telemetry are used.

### Integration

For an external script, change `src` to `data-src`, set `type="text/plain"`, and
specify a category. Example:

    ```
    <script type="text/plain" data-consentsprout-category="analytics" data-src="https://example.com/analytics.js"></script>
    ```

For inline code, use the same `type` and category attributes and put the code in
the element. Only do this for scripts you control. Do not put executable third-party
code into unsanitized admin settings.

Categories are `functional`, `analytics`, and `marketing`. `necessary` is always
true. This mechanism only applies to scripts explicitly marked for ConsentSprout.
It cannot prevent a separate plugin or theme from loading the same script by another
route.

### JavaScript API

The API is available as `window.ConsentSprout` after the plugin script loads:

 * `ConsentSprout.getConsent()` returns the category object or `null` before a choice
   is saved.
 * `ConsentSprout.hasConsent('analytics')` returns a boolean.
 * `ConsentSprout.openPreferences()` opens the preference panel.
 * `ConsentSprout.withdraw()` withdraws optional consent by saving all optional 
   categories as false.
 * `ConsentSprout.onChange(function(categories) {})` registers a consent-change 
   callback.
 * `document` emits `consentsprout:consent-ready` and `consentsprout:consent-changed`
   CustomEvents with consent data in `event.detail`.

Use `[consentsprout_preferences]` in a post or page to display a link-style button
that opens preferences.

### Privacy

ConsentSprout stores the category selection, policy version, choice time, and expiry
time in localStorage on the visitor’s device. It does not transmit this data to 
the site or a third party. The storage key is `consentsprout_consent`. Clearing 
browser storage removes the saved choice. The site owner can change the consent 
lifetime in settings. Necessary storage supports remembering that choice; optional
categories remain off until selected.

## Screenshots

[⌊The consent banner on the front end, with Accept all, Reject non-essential, and
Manage preferences buttons.⌉⌊The consent banner on the front end, with Accept all,
Reject non-essential, and Manage preferences buttons.⌉[

The consent banner on the front end, with Accept all, Reject non-essential, and 
Manage preferences buttons.

[⌊The preference panel lets visitors choose functional, analytics, and marketing
categories. Strictly necessary storage is always on.⌉⌊The preference panel lets 
visitors choose functional, analytics, and marketing categories. Strictly necessary
storage is always on.⌉[

The preference panel lets visitors choose functional, analytics, and marketing categories.
Strictly necessary storage is always on.

[⌊Settings > ConsentSprout: banner text, privacy policy link, policy version, consent
duration, banner position, and optional categories.⌉⌊Settings > ConsentSprout: banner
text, privacy policy link, policy version, consent duration, banner position, and
optional categories.⌉[

Settings > ConsentSprout: banner text, privacy policy link, policy version, consent
duration, banner position, and optional categories.

[⌊The banner and preference panel on a mobile screen.⌉⌊The banner and preference
panel on a mobile screen.⌉[

The banner and preference panel on a mobile screen.

[⌊After a choice is saved, a Privacy settings button lets visitors change their 
preferences at any time.⌉⌊After a choice is saved, a Privacy settings button lets
visitors change their preferences at any time.⌉[

After a choice is saved, a Privacy settings button lets visitors change their preferences
at any time.

## Installation

 1. Upload the `consentsprout` folder to `/wp-content/plugins/` or install the ZIP 
    through Plugins > Add New > Upload Plugin.
 2. Activate ConsentSprout in the Plugins screen.
 3. Open Settings > ConsentSprout to configure the banner, categories, privacy policy
    link, policy version, duration, and position.
 4. Mark each optional script for its consent category using the integration pattern
    below.

## FAQ

### Does this make my site legally compliant?

No. It provides consent controls, but cannot determine your legal obligations or
discover every script on your site. Configure integrations and policy language with
your own requirements in mind.

### Will it block every tracking script automatically?

No. Only scripts explicitly marked with the documented data attributes are gated.
Configure the scripts and integrations used by your site.

### Is any feature paid or time limited?

No. All plugin features are free, with no account, trial, quota, premium unlock,
or license key.

### Where is consent stored?

In the visitor’s browser localStorage. No consent records are sent to a remote service.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“ConsentSprout – Cookie Consent Manager” is open source software. The following 
people have contributed to this plugin.

Contributors

 *   [ Anand Bajrangi ](https://profiles.wordpress.org/anandbajrangi/)

[Translate “ConsentSprout – Cookie Consent Manager” into your language.](https://translate.wordpress.org/projects/wp-plugins/consentsprout)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/consentsprout/), check
out the [SVN repository](https://plugins.svn.wordpress.org/consentsprout/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/consentsprout/) 
by [RSS](https://plugins.trac.wordpress.org/log/consentsprout/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.3

 * Remove the unnecessary manual text-domain loader; WordPress.org translations 
   load automatically.

#### 1.0.2

 * Rename and rebrand the plugin as ConsentSprout.
 * Set plugin author metadata to Anand Bajrangi.

#### 1.0.1

 * Ensure the JavaScript consent API is initialized before previously consented 
   scripts run.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.3**
 *  Last updated **20 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [consent banner](https://wordpress.org/plugins/tags/consent-banner/)[cookie consent](https://wordpress.org/plugins/tags/cookie-consent/)
   [cookies](https://wordpress.org/plugins/tags/cookies/)[privacy](https://wordpress.org/plugins/tags/privacy/)
 *  [Advanced View](https://wordpress.org/plugins/consentsprout/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/consentsprout/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/consentsprout/reviews/)

## Contributors

 *   [ Anand Bajrangi ](https://profiles.wordpress.org/anandbajrangi/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/consentsprout/)