multiple-configuration
3 years ago
prior-consent
3 years ago
dashboard-page.php
3 years ago
debug-page.php
3 years ago
gcm-page.php
3 years ago
gtm-page.php
3 years ago
iab-page.php
3 years ago
legislations-page.php
3 years ago
network-settings-page.php
3 years ago
settings-page.php
3 years ago
support-page.php
3 years ago
gcm-page.php
86 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-Cookiebot-and-Google-Consent-Mode"> |
| 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 |