Ecwid: Difference between revisions
Jump to navigation
Jump to search
Ben.robson (talk | contribs) Created page with "= Tag Manager = On the Ecwid Control Panel: Go to Sales Channels > Website > SEO Edit the Head meta tags & site verification & paste GTM here. Adding Value Tracking Go to..." |
Ben.robson (talk | contribs) |
||
| Line 1: | Line 1: | ||
= Tag Manager = | = Tag Manager = | ||
On the Ecwid Control Panel: | On the Ecwid Control Panel: </br> | ||
Go to Sales Channels > Website > SEO | Go to Sales Channels > Website > SEO </br> | ||
Edit the Head meta tags & site verification & paste GTM here. | Edit the Head meta tags & site verification & paste GTM here. </br> | ||
Adding Value Tracking | Adding Value Tracking </br> | ||
Go to Configuration > Settings > General > Tracking & Analytics | Go to Configuration > Settings > General > Tracking & Analytics </br> | ||
Find "Custom tracking code on Order Confirmation page" | Find "Custom tracking code on Order Confirmation page" </br> | ||
If this isn't enabled then enable this & then Edit code. | If this isn't enabled then enable this & then Edit code. </br> | ||
Add the below: | Add the below: </br> | ||
<pre> | |||
<script> | <script> | ||
window.dataLayer = window.dataLayer || []; | window.dataLayer = window.dataLayer || []; | ||
| Line 20: | Line 21: | ||
dataLayer.push({'event' : 'order-submitted'}); | dataLayer.push({'event' : 'order-submitted'}); | ||
</script> | </script> | ||
</pre> | |||
Revision as of 12:35, 25 February 2021
Tag Manager
On the Ecwid Control Panel:
Go to Sales Channels > Website > SEO
Edit the Head meta tags & site verification & paste GTM here.
Adding Value Tracking
Go to Configuration > Settings > General > Tracking & Analytics
Find "Custom tracking code on Order Confirmation page"
If this isn't enabled then enable this & then Edit code.
Add the below:
<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({'order_id' : '${order.number}'});
dataLayer.push({'order_value' : '${order.total}'});
dataLayer.push({'event' : 'order-submitted'});
</script>