Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var dataLayer = window.dataLayer || [];
- dataLayer.push({
- 'event': 'transaction',
- 'ecommerce': {
- 'purchase': {
- 'actionField': {
- 'id': '155',
- 'affiliation': 'affiliate',
- 'revenue': '50',
- 'tax':'12',
- 'shipping': '12',
- 'coupon': 'new' },
- 'products': [{
- 'name': 'iPhone 6',
- 'id': '155',
- 'price': '699.99',
- 'brand': 'Apple',
- 'category': 'phone',
- 'variant': 'rose gold',
- 'quantity': '1',
- 'coupon': 'new''
- },
- {
- 'name': 'iPad Air',
- 'id': 'pad1332',
- 'price': '499',
- 'brand': 'Apple',
- 'category': 'Tablets',
- 'variant': 'Black',
- 'quantity': '2',
- 'coupon': 'Summer 2017'
- }]
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement