Skip to content

Commit

Permalink
Merge pull request #315 from CybotAS/gcm-script
Browse files Browse the repository at this point in the history
Google Consent Mode v2 support
  • Loading branch information
UCjatamayo authored Nov 30, 2023
2 parents bb77cb5 + 1469d41 commit a09600e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 33 deletions.
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: The Cookiebot CMP WordPress cookie banner and cookie policy help you comply with the major data protection laws (GDPR, ePrivacy, CCPA, LGPD, etc.) in a simple and fully automated way. Secure your website and get peace of mind.
Author: Usercentrics A/S
Version: 4.3.3
Version: 4.3.4
Author URI: https://www.cookiebot.com/
Text Domain: cookiebot
Domain Path: /langs
Expand Down
23 changes: 13 additions & 10 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,14 @@
* Tags: cookie banner, GDPR, CCPA, WordPress cookie banner, cookie policy, ePrivacy, dsgvo, privacy compliance, DMA, data privacy, cmp, cookies
* Requires at least: 4.4
* Tested up to: 6.4.1
* Stable tag: 4.3.3
* Stable tag: 4.3.4
* Requires PHP: 5.6
* License: GPLv2 or later

Cookiebot CMP WordPress cookie banner and cookie policy generator - comply with the major data protection laws (GDPR, ePrivacy, CCPA, LGPD, etc.)

## Description ##

**Exclusive Black Friday Promotion**

Get 30% off Your Cookiebot CMP subscription*

*This promotion is valid until November 30th, 2023 and will be applied automatically.
The discount applies to new subscriptions only and is valid for the first 6 months of the subscription period.

---

Cookiebot Consent Management Platform (CMP) provides an **easy to use and fully automated** WordPress cookie banner. It enables compliance with the GDPR, DMA, LGPD, CCPA and other privacy regulations. It also helps **build trust with website visitors** by giving them more control over their personal data.

Cookiebot CMP is one of the few WordPress cookie consent plugins that seamlessly integrates with **Google Tag Manager** and **Google Consent Mode** to help ensure you get higher quality, more compliant data. It's highly customizable, easy to implement and enables you to automate compliant user consent collection and signaling on your websites. Cookiebot CMP uses **industry-leading scanning technology** to detect and control all cookies and trackers on your website, minimizing the risk of noncompliance.
Expand Down Expand Up @@ -306,6 +297,18 @@ If your favorite plugin isn't supported, feel free to request it via our [GitHub
## Changelog ##
**Cookiebot CMP 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 CMP offers.**

### 4.3.4 ###
Release date: November 30th 2023

Cookiebot CMP version 4.3.4 is out! This release adds Google Consent Mode v2 support and updates content. Here is the complete list of this update

####What's new####
* Google Consent Mode v2 support

####Other####
* Removes temporal banner
* Update readme content

### 4.3.3 ###
Release date: November 15th 2023

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 @@ -13,7 +13,7 @@
use RuntimeException;

class Cookiebot_WP {
const COOKIEBOT_PLUGIN_VERSION = '4.3.3';
const COOKIEBOT_PLUGIN_VERSION = '4.3.4';
const COOKIEBOT_MIN_PHP_VERSION = '5.6.0';

/**
Expand Down
22 changes: 1 addition & 21 deletions src/view/admin/settings/dashboard-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,6 @@
<div class="cb-wrapper">
<?php $main_tabs->display( 'dashboard' ); ?>
<div class="cb-main__content <?php echo $cbid ? 'sync-account' : ''; ?>">
<?php
if ( ! $cbid ) :
$today = new DateTime( 'now' );
$end_date = new DateTime( '2023-12-01' );

if ( $today < $end_date ) :
?>
<div class="cb-main__dashboard__promo">
<div class="cb-main__dashboard__promo--inner">
<div class="cb-dashboard__promo--label">Black Friday<span>Promotion</span></div>
<h2 class="cb-dashboard__promo--title">Get 30% off your Cookiebot CMP subscription*</h2>
<a href="https://admin.cookiebot.com/signup?utm_source=wordpress&utm_medium=referral&utm_campaign=black_friday_campaign&coupon=BFRIDAYWP30" target="_blank" class="cb-btn cb-promo-btn">CLAIM YOUR DISCOUNT</a>
<p class="promo-condition">* This promotion is valid until November 30th, 2023 and will be applied automatically. The discount applies to new subscriptions only and is valid for the first 6 months of the subscription period.</p>
<div class="cb-main__dashboard__promo--logo"></div>
</div>
</div>
<?php
endif;
endif;
?>
<div class="cb-main__dashboard__card--container">
<div class="cb-main__dashboard__card">
<div class="cb-main__card__inner <?php echo $cbid ? 'start_card' : 'account_card'; ?>">
Expand Down Expand Up @@ -101,7 +81,7 @@ class="cb-btn cb-link-btn" rel="noopener">
<h2 class="cb-main__card__title">
<?php echo esc_html__( 'Create a new Cookiebot CMP account', 'cookiebot' ); ?>
</h2>
<a href="https://admin.cookiebot.com/signup?utm_source=wordpress&utm_medium=referral&utm_campaign=black_friday_campaign&coupon=BFRIDAYWP30"
<a href="https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner"
target="_blank" class="cb-btn cb-white-btn" rel="noopener">
<?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?>
</a>
Expand Down
2 changes: 2 additions & 0 deletions src/view/frontend/scripts/google-consent-mode-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function gtag() {
<?php echo esc_js( $data_layer ); ?>.push(arguments);
}
gtag("consent", "default", {
ad_user_data: "denied",
ad_personalization: "denied",
ad_storage: "denied",
analytics_storage: "denied",
functionality_storage: "denied",
Expand Down

0 comments on commit a09600e

Please sign in to comment.