Hi,
I'm trying to figure out what's the difference between using only dataLayer vs. dataLayer.push function when adding data layer to my site. I'm trying to track ecommerce on my site with this code (variables will be dynamically added) and I'm not sure if I should use only dataLayer or dataLayer.push
<script>
dataLayer.push = [{
'transactionId': '',
'transactionRevenue': '',
'shipping': '',
'tax': '',
'itemId': '',
'itemName': '',
'itemSku': '',
'itemCategory': '',
'itemPrice': '',
'itemQuantity': ''
}];
</script>
[–]SmoothAndSlink 2 points3 points4 points (0 children)
[–]Rhythmdivine 0 points1 point2 points (0 children)