Author: Not specified Language: text
Description: Not specified Timestamp: 2018-04-13 18:02:17 +0000
View raw paste Reply
  1. <script>
  2. dataLayer = [{
  3.     'transactionId': '[Server Variable]', // Transaction ID - Type:String - Required
  4.     'transactionAffiliation': '[Server Variable]', // store name - Type:String - Optional to use
  5.     'transactionTotal': [Server Variable], //total revenue - Type:Numeric - Required
  6.     'transactionTax': [Server Variable], // Tax amount for transaction - Type:Numeric - Optional to use
  7.     'transactionShipping': [Server Variable], // Shipping cost - Type:Numeric - Optional to use
  8.     'transactionProducts': [{
  9.         'sku': '[Server Variable]', // Product SKU - Type:String - Required
  10.         'name': '[Server Variable]', // Product Name - Type:String - Required
  11.         'category': '[Server Variable]', // Product Category - Type:String - Optional to use
  12.         'price': [Server Variable], // Product Price - Type:Numeric - Required
  13.         'quantity': [Server Variable] // Product Quantity - Type:Numeric - Required
  14.     },{
  15.         'sku': '[Server Variable]', // Product SKU - Type:String - Required
  16.         'name': '[Server Variable]', // Product Name - Type:String - Required
  17.         'category': '[Server Variable]',  // Product Category - Type:String - Optional to use
  18.         'price': [Server Variable], // Product Price - Type:Numeric - Required
  19.         'quantity': [Server Variable] // Product Quantity - Type:Numeric - Required
  20.     }]
  21. }];
  22. </script>
  23.  
View raw paste Reply