Download the PHP package pantheon-systems/pantheon-edge-integrations-consent-management without Composer

On this page you can find all versions of the php package pantheon-systems/pantheon-edge-integrations-consent-management. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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 into Pantheon Edge Integrations to manage consent and data tracking.

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 Pantheon Edge Integrations Consent Management GitHub release

Description

This plugin provides an interface for managing cookie consent with Edge Integrations: Personalization for WordPress. It's built using the WP Consent API feature plugin to manage consent levels and registers the cookies & 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

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 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 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.

The JavaScript file included in the plugin toggles whether a cookie consent banner is rendered depending on whether a WP Consent API marketing consent cookie exists. JavaScript event listeners 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. If Allow Only Functional Cookies is clicked, the consent level is set to deny marketing cookies.

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, 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). 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

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.


All versions of pantheon-edge-integrations-consent-management with dependencies

PHP Build Version
Package Version
Requires rlankhorst/wp-consent-level-api Version 1.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pantheon-systems/pantheon-edge-integrations-consent-management contains the following files

Loading the files please wait ....