138 lines
9.7 KiB
XML
138 lines
9.7 KiB
XML
<?xml version="1.0" ?>
|
||
<!--
|
||
/**
|
||
* @package Plumrocket_CookieConsent
|
||
* @copyright Copyright (c) 2025 Plumrocket Inc. (https://www.plumrocket.com)
|
||
* @license https://www.plumrocket.com/license/ End-user License Agreement
|
||
*/
|
||
-->
|
||
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
|
||
<group id="integrations" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Integrations</label>
|
||
<attribute type="expanded">1</attribute>
|
||
|
||
<group id="pr_gpc" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Global Privacy Control (GPC) – Available in Pro Version</label>
|
||
<attribute type="expanded">0</attribute>
|
||
<field id="upgrade_to_pro_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\UpgradeToProVersionNotice</frontend_model>
|
||
<attribute type="notice_intro">
|
||
<![CDATA[This configuration is available in the Cookie Consent Pro version. Upgrade today to automatically detect users’ browser-level consent preferences and stay compliant with the latest data privacy regulations.]]>
|
||
</attribute>
|
||
</field>
|
||
</group>
|
||
<group id="gtm" translate="label" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Google Tag Manager</label>
|
||
|
||
<field id="enabled" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Enable</label>
|
||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||
<config_path>prgdpr/gtm/enabled</config_path>
|
||
</field>
|
||
<field id="container_id" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Container Id</label>
|
||
<depends>
|
||
<field id="*/*/*/enabled">1</field>
|
||
</depends>
|
||
<config_path>prgdpr/gtm/container_id</config_path>
|
||
<comment>Enter your container ID formatted as "GTM-XXXXXX".</comment>
|
||
</field>
|
||
<field id="server_side_tagging" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Use Server-Side Tagging</label>
|
||
<depends>
|
||
<field id="*/*/*/enabled">1</field>
|
||
</depends>
|
||
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
||
<config_path>pr_cookie/gtm/server_side_tagging</config_path>
|
||
<comment><![CDATA[Enable server-side tagging to serve the Google Tag Manager script from your own infrastructure, as recommended by Google for advanced configurations to serve data within a first-party context. See the <a href="https://developers.google.com/tag-platform/tag-manager/server-side/dependency-serving?tag=gtm" target="_blank">server-side tagging documentation</a> for details on script dependency serving.]]></comment>
|
||
</field>
|
||
<field id="server_url" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Server Container URL</label>
|
||
<depends>
|
||
<field id="*/*/*/enabled">1</field>
|
||
<field id="*/*/*/server_side_tagging">1</field>
|
||
</depends>
|
||
<config_path>pr_cookie/gtm/server_url</config_path>
|
||
</field>
|
||
<field id="consent_mode" type="select" sortOrder="50" translate="label" showInDefault="1"
|
||
showInWebsite="1" showInStore="1">
|
||
<label>Enable Consent Mode</label>
|
||
<options>
|
||
<option label="Yes">1</option>
|
||
<option label="No (Deprecated)">0</option>
|
||
</options>
|
||
<depends>
|
||
<field id="*/*/*/enabled">1</field>
|
||
</depends>
|
||
<config_path>pr_cookie/gtm/consent_mode</config_path>
|
||
<comment><![CDATA[Consent mode is a <a href="https://support.google.com/analytics/answer/9976101" target="_blank">GTM build-in feature</a>, allowing to control Google Tags based on user consent in Magento.]]></comment>
|
||
</field>
|
||
<field id="consent_types" translate="label" sortOrder="60" showInDefault="1" showInWebsite="1"
|
||
showInStore="1">
|
||
<label>Consent Types</label>
|
||
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\ConsentTypes\MappingTable</frontend_model>
|
||
<backend_model>Plumrocket\CookieConsent\Model\Config\Backend\ConsentTypes</backend_model>
|
||
<depends>
|
||
<field id="*/*/*/enabled">1</field>
|
||
<field id="*/*/*/consent_mode">1</field>
|
||
</depends>
|
||
<config_path>pr_cookie/gtm/consent_types</config_path>
|
||
<comment><![CDATA[To learn more about consent types, please check official <a href="https://support.google.com/tagmanager/answer/10718549" target="_blank">consent configuration article</a>.]]></comment>
|
||
</field>
|
||
<field id="category" type="select" sortOrder="70" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Associated Cookie Category</label>
|
||
<source_model>Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\CategoryKey</source_model>
|
||
<depends>
|
||
<field id="*/*/*/enabled">1</field>
|
||
<field id="*/*/*/consent_mode">0</field>
|
||
</depends>
|
||
<config_path>pr_cookie/gtm/category</config_path>
|
||
<comment>Assign Google Tag Manager Script to a specific cookie category. This allows enabling/disabling Google Tag Manager when a visitor enables/disables the corresponding cookie category.</comment>
|
||
</field>
|
||
</group>
|
||
|
||
<group id="no_cookie_youtube" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>YouTube</label>
|
||
<field id="category" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Associated Cookie Category</label>
|
||
<source_model>Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\CategoryKey</source_model>
|
||
<config_path>pr_cookie/no_cookie_youtube/category</config_path>
|
||
<comment><![CDATA[Assign YouTube script to a specific cookie category. This allows enabling/disabling the YouTube <a href="https://support.google.com/youtube/answer/171780" target="_blank">privacy-enhanced mode</a> when the visitor enables/disables the corresponding cookie category.]]></comment>
|
||
</field>
|
||
</group>
|
||
|
||
<group id="adobe_commerce_data_collection" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Adobe Commerce Data Collection</label>
|
||
<field id="category" type="select" sortOrder="10" translate="label" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Associated Cookie Category</label>
|
||
<source_model>Plumrocket\CookieConsent\Model\Cookie\Attribute\Source\CategoryKey</source_model>
|
||
<comment><![CDATA[Specify a cookie category for the Data Collection service, which directly influences the accuracy of <a href="https://experienceleague.adobe.com/en/docs/commerce-merchant-services/product-recommendations/guide-overview" target="_blank">Product Recommendations</a>. Event tracking operates in accordance with the extension's main settings.]]></comment>
|
||
</field>
|
||
</group>
|
||
|
||
<group id="microsoft_ads" translate="label" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Microsoft Ads (UET Consent Mode) – Available in Pro Version</label>
|
||
<attribute type="expanded">0</attribute>
|
||
<field id="upgrade_to_pro_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\UpgradeToProVersionNotice</frontend_model>
|
||
<attribute type="notice_intro">
|
||
<![CDATA[This configuration is available in the Cookie Consent Pro version. Upgrade today to stay compliant with data privacy regulations and ensure your Microsoft Ads tracking respects user consent choices.]]>
|
||
</attribute>
|
||
</field>
|
||
</group>
|
||
|
||
<group id="microsoft_clarity" translate="label" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<label>Microsoft Clarity – Available in Pro Version</label>
|
||
<attribute type="expanded">0</attribute>
|
||
<field id="upgrade_to_pro_notice" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
|
||
<frontend_model>Plumrocket\CookieConsent\Block\Adminhtml\System\Config\Form\UpgradeToProVersionNotice</frontend_model>
|
||
<attribute type="notice_intro">
|
||
<![CDATA[This configuration is available in the Cookie Consent Pro version. Upgrade today to stay compliant with data privacy regulations and ensure your Microsoft Clarity tracking respects user consent choices.]]>
|
||
</attribute>
|
||
</field>
|
||
</group>
|
||
|
||
</group>
|
||
</include>
|