Jump to content

 

CorkSport - Derrick

Member Since 20 Aug 2015
Offline Last Active Mar 21 2019 03:51 PM
-----

Topics I've Started

Adroll Enhanced Conversion Tracking Question

01 November 2017 - 10:10 PM

I am working with cs cart 4.4.3 and trying to implement the ECT tracking for adroll.

The code they request you enter is below

 

<script type="text/javascript">
  adroll_conversion_value = X;
  adroll_currency = "USD";
  adroll_custom_data = {"ORDER_ID": "W", "USER_ID": "Z"};
</script>

 

The X, W, and Z need to be specific for CS cart.

 

After a little trial and error I have come up with the coding below that is placed in design/themes/responsive_cs/templates/views/checkout checkout.tpl

 

<script type="text/javascript">
  adroll_conversion_value = '{$cart.total}';
  adroll_currency = "USD";
  adroll_custom_data = "ORDER_ID": '{$order.id}', "USER_ID": '{$user.id}';
</script>

 

and the result at checkout with a test order is

 

<script type="text/javascript">
adroll_conversion_value = '0.53';
adroll_currency = "USD";
adroll_custom_data = "ORDER_ID": '', "USER_ID": '';

</script>

 

I believe I have the wrong call outs for the order_id and user_id but I have not been able to get a value to come up.  I have looked in the docs but I am not able to come up with an answer.

 

Anyone work with adroll before and this script?

 

Thanks