Add AdRoll tracking conversion pixel


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


  • 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

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.
  var order = App.getOrder({version: 'v1'});
  var orderNumber = order.number;
  var buyerEmail =;
  var subtotal = order.subtotal / 100; // converted to dollars
  var 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) ? "" : ""); 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*/confirmation/* as the URL pattern.

Other Resource

Feedback and Knowledge Base