|
33 | 33 | <field id="enabled">1</field> |
34 | 34 | </depends> |
35 | 35 | </field> |
36 | | - <field id="serverside_gtm_url" type="text" translate="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1"> |
37 | | - <label>Container URL</label> |
38 | | - <comment><![CDATA[<span>When a value is present in this field, data will send to this url instead of https://www.googletagmanager.com. |
39 | | - Default output: https://gtm-test123.uc.r.appspot.com. Create a cname in the dns records for a name like marketing.shopname.com</span><br/> |
40 | | - <b>Keep in mind</b>; enter a full url (with https://). ]]></comment> |
41 | | - </field> |
42 | 36 | <field id="debug" type="select" translate="label" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1"> |
43 | 37 | <label>Debug</label> |
44 | 38 | <source_model>Magento\Config\Model\Config\Source\Yesno</source_model> |
|
114 | 108 | </depends> |
115 | 109 | <comment>Generate the view_cart event only when expanding the minicart</comment> |
116 | 110 | </field> |
117 | | - <field id="order_states_for_purchase_event" type="multiselect" translate="label" sortOrder="16" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 111 | + <field id="serverside_enabled" type="select" translate="label" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 112 | + <label>Server-Side Tracking</label> |
| 113 | + <source_model>Magento\Config\Model\Config\Source\Yesno</source_model> |
| 114 | + <comment>Only enable this, if you are using some kind of Server-Side Tracking extension already. Note that this extension does not enable Server-Side Tracking.</comment> |
| 115 | + </field> |
| 116 | + <field id="serverside_gtm_url" type="text" translate="label" sortOrder="31" showInDefault="1" showInWebsite="1" showInStore="1"> |
| 117 | + <label>Container URL</label> |
| 118 | + <comment><![CDATA[<span>When a value is present in this field, data will send to this url instead of https://www.googletagmanager.com. |
| 119 | + Default output: https://gtm-test123.uc.r.appspot.com. Create a cname in the dns records for a name like marketing.shopname.com</span><br/> |
| 120 | + <b>Keep in mind</b>; enter a full url (with https://). ]]></comment> |
| 121 | + <depends> |
| 122 | + <field id="serverside_enabled">1</field> |
| 123 | + </depends> |
| 124 | + </field> |
| 125 | + <field id="order_states_for_purchase_event" type="multiselect" translate="label" sortOrder="32" showInDefault="1" showInWebsite="1" showInStore="1"> |
118 | 126 | <label>Orders states for purchase event</label> |
119 | 127 | <source_model>Yireo\GoogleTagManager2\Config\Source\OrderStateOptions</source_model> |
120 | | - <comment>Order states at which to trigger the purchase event</comment> |
| 128 | + <comment>Order states at which to trigger the purchase event. Note that this only makes sense when using Server-Side Tracking, because otherwise no purchase event will be triggered ever. When Server-Side Tracking is disabled in this extension, the default of this setting will be to trigger at any state.</comment> |
121 | 129 | <depends> |
122 | 130 | <field id="enabled">1</field> |
| 131 | + <field id="serverside_enabled">1</field> |
123 | 132 | </depends> |
124 | 133 | </field> |
125 | 134 | </group> |
|
0 commit comments