CS-Cart: Difference between revisions

From Growth Agency Wiki
Jump to navigation Jump to search
No edit summary
Line 20: Line 20:


== Conversion Tracking ==
== 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"


<pre>
<pre>
/design/themes/basic/templates/addons/my_changes/hooks/checkout/order_confirmation.post.tpl
/app/addons
</pre>
 
if it exists, you are ready to install the tracking
 
create the file below if it doesn't exist
 
<pre>
/design/themes/{theme name}/templates/addons/my_changes/hooks/checkout/order_confirmation.post.tpl
</pre>
</pre>



Revision as of 13:44, 24 May 2019

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

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

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/