PHPackages                             pantheon-systems/pantheon-edge-integrations-consent-management - 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. pantheon-systems/pantheon-edge-integrations-consent-management

AbandonedArchivedWordpress-plugin[Utility &amp; Helpers](/categories/utility)

pantheon-systems/pantheon-edge-integrations-consent-management
==============================================================

Implements WP Consent API into Pantheon Edge Integrations to manage consent and data tracking.

0.3.0(3y ago)01.4kMITPHP

Since Mar 15Pushed 1y ago3 watchersCompare

[ Source](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management)[ Packagist](https://packagist.org/packages/pantheon-systems/pantheon-edge-integrations-consent-management)[ RSS](/packages/pantheon-systems-pantheon-edge-integrations-consent-management/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (12)Used By (0)

Pantheon Edge Integrations Consent Management
=============================================

[](#pantheon-edge-integrations-consent-management)

Stable tag: 0.3.0
Requires at least: 5.8
Tested up to: 6.1
Requires PHP: 7.4
License: MIT
Tags: pantheon, personalization, edge integrations, consent, developer Contributors: jazzs3quence, getpantheon

Implements [WP Consent API](https://github.com/rlankhorst/WP-Consent-Level-API) into [Pantheon Edge Integrations](https://pantheon.io/docs/guides/edge-integrations) to manage consent and data tracking.

Archived project
----------------

[](#archived-project)

This project is **archived** as of August 2024 as it no longer receives active development. The architecture provided by the tools in this SDK and the related projects are still valid and will continue to work on Pantheon AGCDN. However, we will not be responding to issues or pull requests or building these tools out more than they are already.

[![Unsupported](https://camo.githubusercontent.com/628b81b854d88f0f44cf81e33f54ab504377a35db3986497241f6d5d75c01a2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70616e7468656f6e2d646570726563617465642d79656c6c6f773f6c6f676f3d70616e7468656f6e26636f6c6f723d464644433238)](https://docs.pantheon.io/oss-support-levels#deprecated) [![Pantheon Edge Integrations Consent Management](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management/actions/workflows/test.yml/badge.svg)](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management/actions/workflows/test.yml/badge.svg) [![GitHub release](https://camo.githubusercontent.com/1d7050a6da0a0c75fc884fa9d2b146be7aeda0b0b74a5d14fd231fb08f59ec5b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f70616e7468656f6e2d73797374656d732f70616e7468656f6e2d656467652d696e746567726174696f6e732d636f6e73656e742d6d616e6167656d656e742e737667)](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management/releases/)

Description
-----------

[](#description)

This plugin provides an interface for managing cookie consent with Edge Integrations: Personalization for WordPress. It's built using the [WP Consent API](https://github.com/rlankhorst/WP-Consent-Level-API) feature plugin to manage consent levels and registers the cookies &amp; local storage data with the Consent API.

A banner is displayed if no consent has been given yet. The interest and geo tracking functionality does not operate until consent is given. If consent is revoked, neither form of tracking will be active.

In addition, suggested text is provided on the Privacy page in the admin to add to your site's privacy or cookie policy page.

### How it works

[](#how-it-works)

The WP Consent API adds a programmatic interface to manage and track a user's consent level for cookies and other forms of local storage frequently used for storing user preferences, tracking information, etc. It does this by establishing a range of cookie categories (described in the [Frequently Asked Questions](https://github.com/rlankhorst/wp-consent-level-api#frequently-asked-questions) like statistics, marketing and functional.

This plugin adds an integration with the Consent API library to manage the cookies and local storage created and used by the [Pantheon WordPress Edge Integrations](https://github.com/pantheon-systems/pantheon-wordpress-edge-integrations) plugin. For the purposes of this plugin, all cookies and local storage created by Pantheon WordPress Edge Integrations plugin are considered "marketing" cookies and flagged as such in the code when those cookies are [registered with the API](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management/blob/main/inc/namespace.php#L54-L82).

The JavaScript file included in the plugin toggles whether a [cookie consent banner is rendered](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management/blob/main/assets/js/main.js#L45-L55) depending on whether a WP Consent API marketing consent cookie exists. [JavaScript event listeners](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management/blob/main/assets/js/main.js#L71-L72) wait for one of the two buttons -- either Allow All Cookies or Allow Only Functional Cookies -- are clicked. If Allow All Cookies is clicked, [the consent level is set to *allow* marketing cookies](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management/blob/main/assets/js/main.js#L34-L36). If Allow Only Functional Cookies is clicked, [the consent level is set to *deny* marketing cookies](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management/blob/main/assets/js/main.js#L38-L40).

The PHP code then checks for consent for "marketing" cookies. If consent has not been given, it makes two adjustments to the Pantheon WordPress Edge Integrations plugin, rendering the Edge Integrations functions inoperable until consent is given:

1. The `pantheon.ei.supported_vary_headers` filter is used to [set all Edge Integrations vary headers to false](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management/blob/main/inc/namespace.php#L99-L111), so no headers are sent to AGCDN. This ensures that the user's preferences are respected by not sending any personalization data to our edge servers.
2. The `pantheon.ei.post_types` filter is used to [set the allowed post type(s) to a non-existant post type (`none`)](https://github.com/pantheon-systems/pantheon-edge-integrations-consent-management/blob/main/inc/namespace.php#L113-L121). This ensures that interest tracking is not stored at all, since none of the content a user would be visiting would be in an allowed post type.

### Extending the Plugin

[](#extending-the-plugin)

This plugin is just a functional example of how to manage consent with Edge Integrations. The code can be forked and expanded for more robust consent management. More consent categories can be supported than just "marketing" and hooks can be added to allow the categories to be filterable, the `none` post type to be modified, etc. Additionally, the consent banner can be modified to support more granular selection of consent categories as part of a more robust consent management solution, and the content of the banner could be hooked to an options page where it is editable by site owners.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~26 days

Total

10

Last Release

1399d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a89f5f15357797cbd6ec7833a28626478ae3c0ceb5fa1faa8a26d0960584c65?d=identicon)[pantheon-systems](/maintainers/pantheon-systems)

![](https://www.gravatar.com/avatar/af6c0ce1d250a8a8edc57b4759dabc3d5f7956fc105450bba7fc5d2eb5b74362?d=identicon)[jazzsequence](/maintainers/jazzsequence)

---

Top Contributors

[![jazzsequence](https://avatars.githubusercontent.com/u/991511?v=4)](https://github.com/jazzsequence "jazzsequence (125 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pantheon-systems-pantheon-edge-integrations-consent-management/health.svg)

```
[![Health](https://phpackages.com/badges/pantheon-systems-pantheon-edge-integrations-consent-management/health.svg)](https://phpackages.com/packages/pantheon-systems-pantheon-edge-integrations-consent-management)
```

###  Alternatives

[alchemy/zippy

Zippy, the archive manager companion

47522.6M51](/packages/alchemy-zippy)[kotchuprik/php-short-id

Yet another Short ID generator. The library help you generate short id like youtube, vimeo, bit.ly, etc.

3054.4k](/packages/kotchuprik-php-short-id)[transprime-research/piper

PHP Pipe method execution with values from chained method executions

174.6k2](/packages/transprime-research-piper)

PHPackages © 2026

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