multiple-configuration
3 years ago
prior-consent
3 years ago
dashboard-page.php
2 years ago
debug-page.php
3 years ago
gcm-page.php
2 years ago
gtm-page.php
2 years ago
iab-page.php
3 years ago
legislations-page.php
3 years ago
network-settings-page.php
2 years ago
settings-page.php
2 years ago
support-page.php
2 years ago
gcm-page.php
132 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 | |
| 87 | <div id="gcm-cookie-categories" class="cb-settings__config__item<?php echo esc_attr( $auto_disabled ); ?>"<?php echo ( $gcm_enabled_option === '1' ) ? '' : ' style="display: none"'; ?>> |
| 88 | <div class="cb-settings__config__content"> |
| 89 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Google Consent Mode cookies', 'cookiebot' ); ?></h3> |
| 90 | <p class="cb-general__info__text"> |
| 91 | <?php esc_html_e( 'Select the cookie types that need to be consented for the Google Consent Mode script', 'cookiebot' ); ?> |
| 92 | </p> |
| 93 | <p class="cb-general__info__note"><?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?></p> |
| 94 | <p class="cb-general__info__note"> |
| 95 | <?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' ); ?> |
| 96 | <br> |
| 97 | <?php esc_html_e( 'Please make sure your Tags in Google Tag Manager are triggered correctly.', 'cookiebot' ); ?> |
| 98 | </p> |
| 99 | </div> |
| 100 | <div class="cb-settings__config__data"> |
| 101 | <div class="cb-settings__config__data__inner"> |
| 102 | <h3 class="cb-settings__data__subtitle"><?php esc_html_e( 'Check one or multiple cookie types:', 'cookiebot' ); ?></h3> |
| 103 | <ul id="cb-settings__gcm__cookie-types"> |
| 104 | <li> |
| 105 | <input |
| 106 | type="checkbox" |
| 107 | value="preferences" |
| 108 | <?php checked( true, $is_preferences ); ?> |
| 109 | name="cookiebot-gcm-cookies[]"<?php echo esc_attr( $cookie_categories_disabled ); ?>> |
| 110 | <label class="cb-settings__cookie-types"><?php esc_html_e( 'preferences', 'cookiebot' ); ?></label> |
| 111 | </li> |
| 112 | <li> |
| 113 | <input |
| 114 | type="checkbox" |
| 115 | value="statistics" |
| 116 | <?php checked( true, $is_statistics ); ?> |
| 117 | name="cookiebot-gcm-cookies[]"<?php echo esc_attr( $cookie_categories_disabled ); ?>> |
| 118 | <label class="cb-settings__cookie-types"><?php esc_html_e( 'statistics', 'cookiebot' ); ?></label> |
| 119 | </li> |
| 120 | <li> |
| 121 | <input |
| 122 | type="checkbox" |
| 123 | value="marketing" |
| 124 | <?php checked( true, $is_marketing ); ?> |
| 125 | name="cookiebot-gcm-cookies[]"<?php echo esc_attr( $cookie_categories_disabled ); ?>> |
| 126 | <label class="cb-settings__cookie-types"><?php esc_html_e( 'marketing', 'cookiebot' ); ?></label> |
| 127 | </li> |
| 128 | </ul> |
| 129 | </div> |
| 130 | </div> |
| 131 | </div> |
| 132 |