Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var dataLayer = window.dataLayer || [];
- dataLayer.push({
- 'event': 'payment_method',
- 'ecommerce': {
- 'checkout': {
- 'actionField': {'step': 3, 'option': 'paypal': }, // option change depends of the paymenth method
- 'products': [{
- 'name': 'carne secca',
- 'id': '8773',
- 'price': 11.99,
- 'brand': 'jack links',
- 'category': [’Best selling products',
- 'Carne secca',
- 'Carne secca (removed)',
- 'Jack Link’s',
- 'New products',
- 'Novità',
- 'Products',
- 'Snack Salati Americani',
- 'Snack Salati Americani (Removed)',
- 'Tutto il cibo',
- 'Tutto il cibo americano’
- ],
- 'quantity': 2,
- 'coupon': 'HappyT2122' //needs to be filled if coupon is used on a single product
- },
- {
- 'name': 'Doritos al formaggio',
- 'id': '2873432',
- 'price': 11.99,
- 'brand': 'Demobrand',
- 'category': 'New products',
- 'Novità',
- 'Products',
- 'Snack Salati Americani',
- 'Snack Salati Americani (Removed)',
- 'Tutto il cibo',
- 'Tutto il cibo americano’
- ',
- 'quantity': 2,
- 'coupon': ''
- }]
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement