PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.6.6
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.6.6
4.7.2 4.7.1 trunk 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 3.0.0 3.0.1 3.1.0 3.10.0 3.10.1 3.11.1 3.11.2 3.11.3 3.2.0 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.6.1 3.6.2 3.6.5 3.6.6 3.7.0 3.7.1 3.8.0 3.9.0 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.2.0 4.2.1 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.3.10 4.3.11 4.3.12 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.7.1 4.3.8 4.3.9 4.3.9.1 4.4.0 4.4.1 4.4.2 4.5.0 4.5.1 4.5.10 4.5.11 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.7.0
cookiebot / src / view / admin / cb_frame / settings / gcm-page.php
cookiebot / src / view / admin / cb_frame / settings Last commit date
multiple-configuration 1 year ago additional-page.php 10 months ago gcm-page.php 1 year ago general-page.php 4 months ago gtm-page.php 1 year ago iab-page.php 1 year ago
gcm-page.php
133 lines
1 <?php
2 /**
3 * @var string $cookie_categories_disabled
4 * @var string $gcm_enabled_option
5 * @var string $gcm_url_passthrough_option
6 * @var string $auto_disabled
7 * @var bool $is_preferences
8 * @var bool $is_statistics
9 * @var bool $is_marketing
10 */
11 ?>
12 <div class="cb-general__consent__mode">
13 <h2 class="cb-general__info__title">
14 <?php esc_html_e( 'What is Google Consent Mode and why should you enable it?', 'cookiebot' ); ?>
15 </h2>
16 <p class="cb-general__info__text">
17 <?php esc_html_e( 'Google Consent Mode is a way for your website to measure conversions and get analytics insights while being fully GDPR-compliant when using services like Google Analytics, Google Tag Manager (GTM) and Google Ads.', 'cookiebot' ); ?>
18 </p>
19 <p class="cb-general__info__text">
20 <?php esc_html_e( 'Cookiebot consent managment platform (CMP) and Google Consent Mode integrate seamlessly to offer you plug-and-play compliance and streamlined use of all Google\'s services in one easy solution.', 'cookiebot' ); ?>
21 </p>
22 <a class="cb-btn cb-link-btn" target="_blank" rel="noopener"
23 href="https://support.cookiebot.com/hc/en-us/articles/360016047000-Cookiebot-and-Google-Consent-Mode">
24 <?php esc_html_e( 'Read more about Cookiebot CMP and Google Consent Mode', 'cookiebot' ); ?>
25 </a>
26 </div>
27
28 <div class="cb-settings__config__item">
29 <div class="cb-settings__config__content">
30 <h3 class="cb-settings__config__subtitle">
31 <?php esc_html_e( 'Google Consent Mode:', 'cookiebot' ); ?>
32 </h3>
33 <p class="cb-general__info__text">
34 <?php esc_html_e( 'Enable Google Consent Mode with default settings on your WordPress page.', 'cookiebot' ); ?>
35 </p>
36 <a class="cb-btn cb-link-btn" target="_blank" rel="noopener"
37 href="https://support.cookiebot.com/hc/en-us/articles/360016047000-Implementing-Google-consent-mode#h_01J03HKJ8K2WPB1HJZQQ5BDMQQ">
38 <?php esc_html_e( 'Read more', 'cookiebot' ); ?>
39 </a>
40 </div>
41 <div class="cb-settings__config__data">
42 <div class="cb-settings__config__data__inner">
43 <label class="switch-checkbox" for="gcm">
44 <input
45 type="checkbox"
46 name="cookiebot-gcm"
47 id="gcm"
48 value="1" <?php checked( 1, $gcm_enabled_option ); ?>>
49 <div class="switcher"></div>
50 <?php esc_html_e( 'Google Consent Mode', 'cookiebot' ); ?>
51 <?php echo ( $gcm_enabled_option === '1' ) ? 'enabled' : 'disabled'; ?>
52 </label>
53 <input type="hidden" name="cookiebot-gcm-first-run" value="1">
54 </div>
55 </div>
56 </div>
57
58 <div class="cb-settings__config__item"<?php echo ( $gcm_enabled_option === '1' ) ? '' : ' style="display: none"'; ?>>
59 <div class="cb-settings__config__content">
60 <h3 class="cb-settings__config__subtitle">
61 <?php esc_html_e( 'URL passthrough:', 'cookiebot' ); ?>
62 </h3>
63 <p class="cb-general__info__text">
64 <?php esc_html_e( 'This feature will allow you to pass data between pages when not able to use cookies without/prior consent.', 'cookiebot' ); ?>
65 </p>
66 <a class="cb-btn cb-link-btn" target="_blank" rel="noopener"
67 href="https://developers.google.com/tag-platform/devguides/consent#passing_ad_click_client_id_and_session_id_information_in_urls">
68 <?php esc_html_e( 'Read more', 'cookiebot' ); ?>
69 </a>
70 </div>
71 <div class="cb-settings__config__data">
72 <div class="cb-settings__config__data__inner">
73 <label class="switch-checkbox" for="gcm-url-pasthrough">
74 <input
75 type="checkbox"
76 name="cookiebot-gcm-url-passthrough"
77 id="gcm-url-pasthrough"
78 value="1" <?php checked( 1, $gcm_url_passthrough_option ); ?>>
79 <div class="switcher"></div>
80 <?php esc_html_e( 'URL passthrough', 'cookiebot' ); ?>
81 <?php echo ( $gcm_url_passthrough_option === '1' ) ? 'enabled' : 'disabled'; ?>
82 </label>
83 </div>
84 </div>
85 </div>
86
87 <div id="gcm-cookie-categories"
88 class="cb-settings__config__item<?php echo esc_attr( $auto_disabled ); ?>"<?php echo ( $gcm_enabled_option === '1' ) ? '' : ' style="display: none"'; ?>>
89 <div class="cb-settings__config__content">
90 <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Google Consent Mode cookies', 'cookiebot' ); ?></h3>
91 <p class="cb-general__info__text">
92 <?php esc_html_e( 'Select the cookie types that need to be consented for the Google Consent Mode script', 'cookiebot' ); ?>
93 </p>
94 <p class="cb-general__info__note"><?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?></p>
95 <p class="cb-general__info__note">
96 <?php esc_html_e( 'This option may affect the behaviour of your GTM Tags, as the script will run on the selected cookies consent.', 'cookiebot' ); ?>
97 <br>
98 <?php esc_html_e( 'Please make sure your Tags in Google Tag Manager are triggered correctly.', 'cookiebot' ); ?>
99 </p>
100 </div>
101 <div class="cb-settings__config__data">
102 <div class="cb-settings__config__data__inner">
103 <h3 class="cb-settings__data__subtitle"><?php esc_html_e( 'Check one or multiple cookie types:', 'cookiebot' ); ?></h3>
104 <ul id="cb-settings__gcm__cookie-types">
105 <li>
106 <input
107 type="checkbox"
108 value="preferences"
109 <?php checked( true, $is_preferences ); ?>
110 name="cookiebot-gcm-cookies[]"<?php echo esc_attr( $cookie_categories_disabled ); ?>>
111 <label class="cb-settings__cookie-types"><?php esc_html_e( 'preferences', 'cookiebot' ); ?></label>
112 </li>
113 <li>
114 <input
115 type="checkbox"
116 value="statistics"
117 <?php checked( true, $is_statistics ); ?>
118 name="cookiebot-gcm-cookies[]"<?php echo esc_attr( $cookie_categories_disabled ); ?>>
119 <label class="cb-settings__cookie-types"><?php esc_html_e( 'statistics', 'cookiebot' ); ?></label>
120 </li>
121 <li>
122 <input
123 type="checkbox"
124 value="marketing"
125 <?php checked( true, $is_marketing ); ?>
126 name="cookiebot-gcm-cookies[]"<?php echo esc_attr( $cookie_categories_disabled ); ?>>
127 <label class="cb-settings__cookie-types"><?php esc_html_e( 'marketing', 'cookiebot' ); ?></label>
128 </li>
129 </ul>
130 </div>
131 </div>
132 </div>
133