Installing Tracking Code: Zen Cart

It is very easy to install the tracking code for your goal into Zen Cart.

A detailed explanation from Zen Cart is here http://tutorials.zen-cart.com/index.php?article=399

  1. Locate the file /includes/templates/YOUR_CUSTOM_TEMPLATE_NAME/checkout_success/tpl_footer.php
  2. Edit the file inserting the code generated for you when you set up your goal.
  3. Amend the code as below where in bold:

<script>

<!--

var value="<?php echo $order_summary['order_total']; ?>"; //Value of sale
var ref="<?php echo $order_summary['order_number']; ?>"; //Your unique reference

var mid="1234";
var goalid="1234";
//-->
</script>
<script src="https://aflite.co.uk/js/track.js"></script>

Need more help?

Support Chat
E-mail
Call us
0844 800 9672