CS-Cart: Difference between revisions
Jump to navigation
Jump to search
| Line 13: | Line 13: | ||
Order URL: | Order URL: | ||
<pre> | |||
index.php?dispatch=checkout.complete | index.php?dispatch=checkout.complete | ||
</pre> | |||
Form url: | Form url: | ||
<pre> | |||
/contact-us.html?sent=Y | /contact-us.html?sent=Y | ||
</pre> | |||
== Conversion Tracking == | == Conversion Tracking == | ||
Latest revision as of 10:13, 8 December 2022
Tag Manager
insert Google tag manager code into:
design/themes/{theme name}/templates/index.tpl
To install the Tag Manager, you must use the literal tags {literal}{/literal} around it or it will give you an error
Conversion URLS
Order URL:
index.php?dispatch=checkout.complete
Form url:
/contact-us.html?sent=Y
Conversion Tracking
Installing the conversion value tracking requires the My changes plugin. This is most likely installed. To check go to the directory below and check for the "my_changes folder"
/app/addons
if it exists, you are ready to install the tracking
- if it still doesn't work it may need to be activated in the back-end
create the file below if it doesn't exist
/design/themes/{theme name}/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/