Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'ecommerce': {
- 'purchase': {
- 'actionField': {
- 'id': '58418',
- 'affiliation': 'company name',
- 'revenue': '1750.00',
- 'tax': '339.00',
- 'shipping': '0'
- },
- 'products':
- [
- // List of productFieldObjects.
- {
- 'name': 'prod1',
- 'id': 'productsku1',
- 'price': '1590.00',
- 'brand': 'company name',
- 'quantity': 1
- }
- ,
- {
- 'name': 'prod2',
- 'id': 'productsku2',
- 'price': '190.00',
- 'brand': 'company name',
- 'quantity': 1
- }
- ,
- {
- 'name': 'prod3',
- 'id': 'productsku3',
- 'price': '250.00',
- 'brand': 'company name',
- 'quantity': 1
- }
- ,
- {
- 'name': 'freight',
- 'id': 'productsku4',
- 'price': '120.00',
- 'brand': 'company name',
- 'quantity': 1
- }
- ]
- }
- }
- });
- </script>
- </head>
- <body>
- <!-- Google Tag Manager -->
- <redacted>
- <!-- End Google Tag Manager -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement