anchor.diff:      irEvent.setOrderId('<%= j @order.number %>');
       <% @order.line_items.each do |line_item| %>
       irEvent.addItem(
  -      '<%= j line_item.variant.product.name %>', 
  +      '<%= j line_item.variant.product.name %>',
         '<%= j line_item.variant.sku %>',
  -      '<%= line_item.discounted_amount_minus_discounted_amount_from_order.round(2) %>', 
  +      '<%= line_item.discounted_amount_minus_discounted_amount_from_order.round(2) %>',
         '<%= line_item.quantity %>');
       <% end %>
       <% if @order.all_adjustments.promotion.eligible.any? %>
  -    irEvent.setPromoCode("<%= j @order.all_adjustments.promotion.eligible.map{|a| a.source.promotion.code }.uniq.first %>");
  +        irEvent.setPromoCode("<%= j @order.all_adjustments.promotion.eligible.reject{|a| a.source.nil?}.map {|a| a.source.promotion.code }.uniq.first %>");
       <% end %>
       <% if @order.user_id.present? %>
       irEvent.setCustomerId("<%= @order.user_id %>");
       <% end %>
       irEvent.setPostcode("<%= j @order.ship_address.zipcode %>");
  -    irEvent.setSubTotal("<%= @order.item_total.abs.round(2) %>"); 
  +    irEvent.setSubTotal("<%= @order.item_total.abs.round(2) %>");
       irEvent.setRebate("<%= @order.promo_total.abs.round(2) %>");
       irEvent.setCurrency("<%= @order.currency || 'USD' %>");
       <% if Rails.env.production? %>
  
positive.code: <!-- Begin Impact Radius Tracking Code -->
  <% if @order && @order.send_to_impact_radius? %>
    
    <% ENV['IMPACT_RADIUS_JS_URL'].split(',').each do |url| %>
  
    <script type='text/javascript' src='<%= url %>'></script>
  
negative.code:   <% end %>
  
  <% end %>
  <!-- End Impact Radius Tracking Code -->
  