Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cookiebot.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Plugin URI: https://www.cookiebot.com/
Description: Install your cookie banner in minutes. Automatically scan and block cookies to comply with the GDPR, CCPA, Google Consent Mode v2. Free plan option.
Author: Usercentrics A/S
Version: 4.6.5
Version: 4.6.6
Author URI: https://www.cookiebot.com/
Text Domain: cookiebot
Domain Path: /langs
Expand Down
13 changes: 11 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Cookiebot by Usercentrics - Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode #
# Cookiebot by Usercentrics - Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode #
* Contributors: cookiebot,phpgeekdk,aytac
* Tags: cookie banner, cookie consent, cookie notice, GDPR, privacy, cmp, consent‑management‑platform, google‑consent‑mode, compliance, gdpr‑compliance, ccpa, dma
* Requires at least: 4.4
* Tested up to: 6.8
* Stable tag: 4.6.5
* Stable tag: 4.6.6
* Requires PHP: 5.6
* License: GPLv2 or later

Expand Down Expand Up @@ -164,6 +164,15 @@ Usercentrics Cookiebot is fully integrated with the WP Consent API. When your vi
**Cookiebot by Usercentrics Plugin will soon no longer support PHP 5. If your website still runs on this version we recommend upgrading so you can continue enjoying the features Cookiebot by Usercentrics offers.**


### 4.6.6 ###
Release date: March 12th 2026

Cookiebot by Usercentrics version 4.6.6 is out! This release includes an improvement.

####Improvements####

* Improved tracking for PPG redirect — the redirect URL with tracking parameters is now available in all PPG page states, not only when the plugin is inactive

### 4.6.5 ###
Release date: March 3rd 2026

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Cookiebot_WP.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function debug_log( $message ) {
}
}

const COOKIEBOT_PLUGIN_VERSION = '4.6.5';
const COOKIEBOT_PLUGIN_VERSION = '4.6.6';
const COOKIEBOT_MIN_PHP_VERSION = '5.6.0';

/**
Expand Down
26 changes: 15 additions & 11 deletions src/settings/pages/PPG_Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public function ajax_activate_plugin() {
wp_send_json_error( array( 'message' => $result->get_error_message() ), 500 );
}

// Prevent PPG's own activation redirect from stripping our ppg_ref query param.
delete_transient( 'ppguc_activation_redirect' );

wp_send_json_success();
}

Expand Down Expand Up @@ -100,6 +103,14 @@ public function display() {
$is_installed = self::is_plugin_installed();
$is_active = self::is_plugin_active();

$ppg_redirect_url = add_query_arg(
array(
'page' => 'privacy-policy-usercentrics',
'ppg_ref' => 'content-distribution',
),
admin_url( 'admin.php' )
);

if ( ! $is_active ) {
wp_enqueue_script(
'cookiebot-ppg-page-js',
Expand All @@ -109,14 +120,6 @@ public function display() {
true
);

$ppg_redirect_url = add_query_arg(
array(
'page' => 'privacy-policy-usercentrics',
'ppg_ref' => 'content-distribution',
),
admin_url( 'admin.php' )
);

wp_localize_script(
'cookiebot-ppg-page-js',
'cookiebot_ppg',
Expand All @@ -135,9 +138,10 @@ public function display() {
}

$args = array(
'hero_image' => asset_url( 'img/ppg-hero.png' ),
'is_installed' => $is_installed,
'is_active' => $is_active,
'hero_image' => asset_url( 'img/ppg-hero.png' ),
'is_installed' => $is_installed,
'is_active' => $is_active,
'ppg_redirect_url' => $ppg_redirect_url,
);

include_view( 'admin/common/ppg-page.php', $args );
Expand Down
Loading