Can someone help me out with adding ecommerce tracking without using the GA plugin? We are on version 3.20 and have a lot of custom coding and every time I try to active the GA plugin the site crashes.
I just want to know if anyone has used a datalayer on the completed page with google tag manager or a ga ecommerce tag without using tag manager.
I have tried it like this with tagmanager and get nothing.
<script>
dataLayer = [{
'transactionId': '{ORDERID}', // Transaction ID - Type:String - Required
'transactionAffiliation': '{SITE}', // store name - Type:String - Optional to use
'transactionTotal': {TOTAL}, //total revenue - Type:Numeric - Required
'transactionTax': {TAX}, // Tax amount for transaction - Type:Numeric - Optional to use
'transactionShipping': {SHIP}, // Shipping cost - Type:Numeric - Optional to use
'transactionProducts': [{
'sku': '{PRODUCTSKU}', // Product SKU - Type:String - Required
'name': '{PRODUCTNAME}', // Product Name - Type:String - Required
'category': '{CATEGORYNAME}', // Product Category - Type:String - Optional to use
'price': {UNITPRICE}, // Product Price - Type:Numeric - Required
'quantity': {QUANTITY} // Product Quantity - Type:Numeric - Required
},{
'sku': '{PRODUCTSKU}', // Product SKU - Type:String - Required
'name': '{PRODUCTNAME}', // Product Name - Type:String - Required
'category': '{CATEGORYNAME}', // Product Category - Type:String - Optional to use
'price': {UNITPRICE}, // Product Price - Type:Numeric - Required
'quantity': {QUANTITY} // Product Quantity - Type:Numeric - Required
}]
}];
</script>
Thanks for any help you can send my way.
Bob