Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onCheckout() {
- dataLayer.push({
- 'event': 'checkout',
- 'ecommerce': {
- 'checkout': {
- 'actionField': {'step': 1, 'option': 'Visa'},
- 'products': [{
- 'name': 'Triblend Android T-Shirt',
- 'id': '12345',
- 'price': '15.25',
- 'brand': 'Google',
- 'category': 'Apparel',
- 'variant': 'Gray',
- 'quantity': 1
- }]
- }
- },
- 'eventCallback': function() {
- document.location = 'checkout.html';
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement