PHPackages                             automattic/jetpack-cookie-consent - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. automattic/jetpack-cookie-consent

ActiveJetpack-library[Utility &amp; Helpers](/categories/utility)

automattic/jetpack-cookie-consent
=================================

GDPR cookie-consent banner, CCPA opt-out, and consent logging for WordPress.

00PHPCI passing

Since Jun 18Pushed yesterdayCompare

[ Source](https://github.com/Automattic/jetpack-cookie-consent)[ Packagist](https://packagist.org/packages/automattic/jetpack-cookie-consent)[ RSS](/packages/automattic-jetpack-cookie-consent/feed)WikiDiscussions trunk Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Cookie Consent
==============

[](#cookie-consent)

Cookie Consent (`@automattic/jetpack-cookie-consent`) is a plugin-agnostic package intended to provide a GDPR cookie-consent banner, a CCPA "Do Not Sell/Share" opt-out flow, geolocation-based consent-model selection, WP Consent API integration, and consent logging.

This package is currently scaffold-only (no runtime behavior yet) and includes a placeholder Interactivity module entry point so the build passes; feature code is introduced in follow-up PRs.

Usage
-----

[](#usage)

`\Automattic\Jetpack\CookieConsent\Cookie_Consent::init();`

Build the frontend module before use:

`pnpm --filter @automattic/jetpack-cookie-consent build`

Configuration
-------------

[](#configuration)

Filter `jetpack_cookie_consent_config` to override defaults (geo API URL, GDPR/CCPA region lists, cookie policy URL, and the Tracks `event_prefix`). The Tracks event prefix defaults to `jetpack`; set it to `woocommerceanalytics` to keep continuity with the WooCommerce/Unified Analytics Tracks stream.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.2
- The WordPress Interactivity API (WP 6.5+ / Gutenberg).
- The WP Consent API plugin (provides `window.wp_set_consent`) for writing consent state.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c5869ecbb8e0eac7e8b8e0f3cf7bdd8d5fcdc4abc10a72281872c53f8639d44?d=identicon)[automattic](/maintainers/automattic)

---

Top Contributors

[![chihsuan](https://avatars.githubusercontent.com/u/4344253?v=4)](https://github.com/chihsuan "chihsuan (2 commits)")

### Embed Badge

![Health badge](/badges/automattic-jetpack-cookie-consent/health.svg)

```
[![Health](https://phpackages.com/badges/automattic-jetpack-cookie-consent/health.svg)](https://phpackages.com/packages/automattic-jetpack-cookie-consent)
```

###  Alternatives

[pelmered/filament-money-field

94176.7k1](/packages/pelmered-filament-money-field)[kocal/biome-js-bundle

A Symfony Bundle to easily download and use Biome.js in your Symfony applications, to lint your front assets without needing Node.js.

32167.7k5](/packages/kocal-biome-js-bundle)[viest/php-ext-xlswriter-ide-helper

PHP Extension Xlswriter IDE Helper

16497.1k32](/packages/viest-php-ext-xlswriter-ide-helper)[cubear/finder

Finder is a Drupal 8 module to help users find services which meet their criteria

404.2k](/packages/cubear-finder)[airesvsg/acf-to-rest-api-recursive

Get ACF fields recursively

442.5k](/packages/airesvsg-acf-to-rest-api-recursive)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
