Skip to content

Commit 9841efa

Browse files
committed
Labels change
1 parent 41012ad commit 9841efa

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

Block/Adminhtml/System/Config/Form/Attention.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Attention extends \Magefan\Community\Block\Adminhtml\System\Config\Form\In
2323
public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
2424
{
2525
return '<div style="padding:10px;background-color:#ffe5e5;border:1px solid #ddd;margin-bottom:7px;">
26-
<strong>Attention!</strong> Once you made and saved all the configurations,
26+
<strong>Attention!</strong> Once you change and save the settings,
2727
please don\'t forget to scroll down to the "Export Container" section
2828
and click the "Generate JSON Container & Download File" button to export container data.
2929
After you save the file, <a target="_blank" title="Create GTM tags" href="https://magefan.com/blog/add-google-tag-manager-to-magento-2#5-create-gtm-tags">

Model/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public function isCookieRestrictionModeEnabled(string $storeId = null)
168168
return (bool)$this->getConfig(Custom::XML_PATH_WEB_COOKIE_RESTRICTION, $storeId);
169169
}
170170

171+
/*
171172
* Retrieve Magento product categories
172173
*
173174
* @param string|null $storeId

etc/adminhtml/system.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
<label>Public ID</label>
3434
<comment><![CDATA[
3535
E.g. <strong>GTM-XXXXXXX</strong><br/>
36-
Please note that we do not allow pasting the GTM JavaScript code directly for security reasons. Public ID is used to automatically insert the GTM code to your pages:
37-
<pre>
36+
Please note that we do not allow pasting the GTM JavaScript code directly for security reasons. Public ID is used to automatically insert the code to your pages:
37+
<pre style="border: 1px dashed #5f5f5f;padding: 5px;background: #f4f4f4;">
3838
&lt;!-- Google Tag Manager --&gt;
3939
&lt;script&gt;(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({&#39;gtm.start&#39;:
4040
new Date().getTime(),event:&#39;gtm.js&#39;});var f=d.getElementsByTagName(s)[0],
@@ -43,7 +43,7 @@ j=d.createElement(s),dl=l!=&#39;dataLayer&#39;?&#39;&amp;l=&#39;+l:&#39;&#39;;j.
4343
})(window,document,&#39;script&#39;,&#39;dataLayer&#39;,&#39;<strong>GTM-XXXXXXX</strong>&#39;);&lt;/script&gt;
4444
&lt;!-- End Google Tag Manager --&gt;
4545
</pre>
46-
<pre>
46+
<pre style="border: 1px dashed #5f5f5f;padding: 5px;background: #f4f4f4;">
4747
&lt;!-- Google Tag Manager (noscript) --&gt;
4848
&lt;noscript&gt;&lt;iframe src=&quot;https://www.googletagmanager.com/ns.html?id=<strong>GTM-XXXXXXX</strong>&quot;
4949
height=&quot;0&quot; width=&quot;0&quot; style=&quot;display:none;visibility:hidden&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt;
@@ -106,20 +106,20 @@ height=&quot;0&quot; width=&quot;0&quot; style=&quot;display:none;visibility:hid
106106
<comment><![CDATA[<strong class="colorRed">Warning!</strong> Enabling this option may cause the performance impact.]]></comment>
107107
</field>
108108
</group>
109-
<group id="container" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
110-
<label>Export Container</label>
111-
<field id="export" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
112-
<frontend_model>Magefan\GoogleTagManager\Block\Adminhtml\System\Config\Form\Button</frontend_model>
113-
</field>
114-
</group>
115-
<group id="customer_data" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
109+
<group id="customer_data" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
116110
<label>GDPR/CCPA/LGPD (Customer Data Protection Regulation)</label>
117111
<field id="protect" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
118112
<label>Protect Customer Data</label>
119113
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
120114
<frontend_model>Magefan\GoogleTagManager\Block\Adminhtml\System\Config\Form\ProtectCustomerData</frontend_model>
121115
</field>
122116
</group>
117+
<group id="container" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
118+
<label>Export Container</label>
119+
<field id="export" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
120+
<frontend_model>Magefan\GoogleTagManager\Block\Adminhtml\System\Config\Form\Button</frontend_model>
121+
</field>
122+
</group>
123123
</section>
124124
</system>
125125
</config>

etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<categories/>
2727
</attributes>
2828
<customer_data>
29-
<protect>1</protect>
29+
<protect>0</protect>
3030
</customer_data>
3131
</mfgoogletagmanager>
3232
</default>

0 commit comments

Comments
 (0)