Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Adroll Enhanced Conversion Tracking Question Rate Topic   - - - - -

 

Posted 01 November 2017 - 10:10 PM #1

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

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19574 posts

Posted 02 November 2017 - 07:06 AM #2

You should add the code to the following template (it has hooks)

 

design/themes/THEME/templates/views/checkout/complete.tpl

<script type="text/javascript">
  adroll_conversion_value = '{$order_info.total}';
  adroll_currency = "USD";
  adroll_custom_data = "ORDER_ID": "{$order_info.order_id}", "USER_ID": "{$order_info.user_id}";
</script>

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 02 November 2017 - 01:45 PM #3

Thanks for the suggestion,

 

I think there is an extra set of { } in the code you suggested.  I had to remove the them and it works great!

 

Thank You



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19574 posts

Posted 03 November 2017 - 05:30 AM #4

I have corrected my post. Thank you.


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.