Created
June 30, 2018 09:30
-
-
Save marcusRB/c4b1166a45663537f56a228a15cb9daf to your computer and use it in GitHub Desktop.
GA Classic Ecommerce for Google Tag Manager dataLayer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.dataLayer = window.dataLayer || [] | |
dataLayer.push({ | |
'transactionId': '1234', | |
'transactionAffiliation': 'Moda Filomena', | |
'transactionTotal': 38.26, | |
'transactionTax': 1.29, | |
'transactionShipping': 5, | |
'transactionProducts': [{ | |
'sku': 'DD44', | |
'name': 'Camiseta', | |
'category': 'Indumentaria', | |
'price': 11.99, | |
'quantity': 1 | |
},{ | |
'sku': 'AA1243544', | |
'name': 'Calcetines', | |
'category': 'Indumentaria', | |
'price': 9.99, | |
'quantity': 2 | |
}] | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment