Poool paywall

The Poool module implements the Poool paywall solution.

Configuration

  1. Navigate to Administration > Extend and enable the module.
  2. Navigate to Administration > Configuration > Web services > Poool and configure your implementation.
  3. Optionnaly, you can alter some data and configurations thanks to alters. See poool.api.php for more details.

Override cookies authorization by javascript

For RGPD considerations, you can send to poool if cookies have been allowed.
Here is an example for Matomo configuration with an audience group.

(function($, Drupal, drupalSettings) {
    Drupal.behaviors.withMatomo = {
        attach: function(context, settings) {
          Drupal.eu_cookie_compliance('postPreferencesLoad', function(){
            if (Drupal.eu_cookie_compliance.hasAgreed('audience')) {
              // Tell poool it's allowed to track with cookies.
              drupalSettings.poool.config.cookies_enabled = true;
            }
          });
        }
    };
})(jQuery, Drupal, drupalSettings);
Supporting organizations: 

Project information

Releases