MyshopBlocks: Difference between revisions

From Growth Agency Wiki
Jump to navigation Jump to search
Created page with "= Tag Manager Installation = in Admin go to settings -> Tracking -> Manage Tracking and split the GTM code. Put the Script section in the head and the no script in the foote..."
 
 
Line 12: Line 12:
In the Conversion Tracking section add:
In the Conversion Tracking section add:


<pre>
<script>
<script>
var dataLayer = window.dataLayer || [];
var dataLayer = window.dataLayer || [];
dataLayer.push({'order_id' : '{ ORDER_ID }', 'order_value' : '{ ORDER_TOTAL }', 'event' : 'order-submitted'});
dataLayer.push({'order_id' : '{ ORDER_ID }', 'order_value' : '{ ORDER_TOTAL }', 'event' : 'order-submitted'});
</script>
</script>
</pre>

Latest revision as of 10:37, 10 April 2019

Tag Manager Installation

in Admin go to settings -> Tracking -> Manage Tracking

and split the GTM code. Put the Script section in the head and the no script in the footer


Conversion Value

in Admin go to settings -> Tracking -> Manage Tracking

In the Conversion Tracking section add:

<script>
var dataLayer = window.dataLayer || [];
dataLayer.push({'order_id' : '{ ORDER_ID }', 'order_value' : '{ ORDER_TOTAL }', 'event' : 'order-submitted'});
</script>