diff --git a/cookiebot.php b/cookiebot.php index 4e4b0443..2c1996c3 100644 --- a/cookiebot.php +++ b/cookiebot.php @@ -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 diff --git a/readme.txt b/readme.txt index b4b2fe4d..a5e759e1 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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 diff --git a/src/lib/Cookiebot_WP.php b/src/lib/Cookiebot_WP.php index 2c434d8a..524844f9 100644 --- a/src/lib/Cookiebot_WP.php +++ b/src/lib/Cookiebot_WP.php @@ -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'; /** diff --git a/src/settings/pages/PPG_Page.php b/src/settings/pages/PPG_Page.php index 1ba04f00..5e8e2815 100644 --- a/src/settings/pages/PPG_Page.php +++ b/src/settings/pages/PPG_Page.php @@ -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(); } @@ -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', @@ -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', @@ -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 );