CS-Cart

From Growth Agency Wiki
Jump to navigation Jump to search

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/