Advertisement
Guest User

Untitled

a guest
May 26th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. ga('require', 'ecommerce');
  2.  
  3. ga('ecommerce:addTransaction', {
  4. 'id': _thrive_order.order.id,
  5. 'revenue': _thrive_order.order.order_total,
  6. 'tax': _thrive_order.order.order_tax,
  7. 'currency': _thrive_order.order.currency
  8. });
  9.  
  10. ga('ecommerce:addItem', {
  11. 'id': _thrive_order.order.id,
  12. 'name': _thrive_order.order.product.name,
  13. 'sku': _thrive_order.order.product.id,
  14. 'price': _thrive_order.order.product.total,
  15. 'quantity': '1'
  16. });
  17.  
  18. ga('ecommerce:send');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement