CS-Cart: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
insert Google tag manager code into: | insert Google tag manager code into: | ||
<pre> | |||
design/themes/{theme name}/templates/index.tpl | design/themes/{theme name}/templates/index.tpl | ||
</pre> | |||
Tag Manager must use the literal tags or will give error | Tag Manager must use the literal tags or will give error | ||
| Line 19: | Line 21: | ||
== Conversion Tracking == | == Conversion Tracking == | ||
<pre> | |||
/design/themes/basic/templates/addons/my_changes/hooks/checkout/order_confirmation.post.tpl | /design/themes/basic/templates/addons/my_changes/hooks/checkout/order_confirmation.post.tpl | ||
</pre> | |||
<pre> | |||
{literal} | {literal} | ||
<script> | <script> | ||
| Line 28: | Line 33: | ||
</script> | </script> | ||
{/literal} | {/literal} | ||
</pre> | |||
Other values that can be used: | Other values that can be used: | ||
| Line 52: | Line 57: | ||
= Clear Cache = | = Clear Cache = | ||
To clear the cache add query Parameters to the site's URL: | To clear the cache add query Parameters to the site's URL: | ||
<pre> | |||
http://example.com/admin.php?cc&ctpl&ct | http://example.com/admin.php?cc&ctpl&ct | ||
</pre> | |||
or delete items in var/cache/ | or delete items in <pre>var/cache/</pre> | ||
Revision as of 13:58, 8 June 2018
Tag Manager
insert Google tag manager code into:
design/themes/{theme name}/templates/index.tpl
Tag Manager must use the literal tags or will give error {literal}{/literal}
Conversion URLS:
Order URL: index.php?dispatch=checkout.complete
Form url: /contact-us.html?sent=Y
Conversion Tracking
/design/themes/basic/templates/addons/my_changes/hooks/checkout/order_confirmation.post.tpl
{literal}
<script>
dataLayer.push({'order_id' : '{/literal}{$order_info.order_id}{literal}'});
dataLayer.push({'order_value' : '{/literal}{$order_info.total}{literal}'});
dataLayer.push({'event' : 'order-submitted'});
</script>
{/literal}
Other values that can be used:
{$order_info.items} {$item.product_code} {$item.price} {$item.amount}
{$order_info.order_id} {$order_info.subtotal} {$order_info.total}
{$order_info.order_id} {$order_info.shipping_cost} {$order_info.s_state} {$order_info.s_country} {$order_info.s_city} {$order_info.tax_ids} {$item.product} {$item.tax_value}
Clear Cache
To clear the cache add query Parameters to the site's URL:
http://example.com/admin.php?cc&ctpl&ct
or delete items in
var/cache/