Add AdRoll tracking conversion pixel

Overview


Use AdRoll to track conversions with a conversion pixel on the confirmation page.

Disclaimer

  • Do not use the default code snippet provided by AdRoll. Instead, use the Celery code snippet below with your AdRoll settings.

Getting Started


Step 1: Setup your AdRoll tracking conversion pixel


https://help.adroll.com/hc/en-us/articles/201959120-Getting-Started-In-4-Easy-Steps

Step 2: Retrieve your AdRoll tracking pixel ID



Step 3: Add the tracking pixel (below) in the custom confirmation scripts

Remember to replace ADV_ID and PIX_ID with the ones provided by AdRoll.
<script>
  var order = App.getOrder({version: 'v1'});
  var orderNumber = order.number;
  var buyerEmail = order.buyer.email;
  var subtotal = order.subtotal / 100; // converted to dollars
  var total = order.total / 100; // converted to dollars
 
  adroll_conversion_value = total;
adroll_currency = "USD"; adroll_custom_data = { ORDER_ID: orderNumber, USER_ID: buyerEmail }; adroll_adv_id = "{ADV_ID}"; // REPLACE adroll_pix_id = "{PIX_ID}"; // REPLACE (function () { __adroll_loaded=true; var scr = document.createElement("script"); var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com"); scr.setAttribute('async', 'true'); scr.type = "text/javascript"; scr.src = host + "/j/roundtrip.js"; ((document.getElementsByTagName('head') || [null])[0] || document.getElementsByTagName('script')[0].parentNode).appendChild(scr); }()); </script>
Step 4: Set the confirmation URL for your AdRoll segment (optional)

If you're looking to set up segments in AdRoll, please use https://shop.trycelery.com/page/*/confirmation/* as the URL pattern.

Other Resource


Feedback and Knowledge Base