Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.dataLayer = window.dataLayer || [];
- dataLayer.push({
- 'event': 'Purchase',
- 'ecommerce': {
- 'currencyCode': 'USD',
- 'purchase': {
- 'actionField': {
- 'id': '54872sde', // transaction id, required
- 'revenue': '575', // Total transaction value (incl. Tax)
- 'coupon': 'VIP' // Coupon code, if coupon was applied
- },
- 'products': [{
- 'name': 'Single Session',
- 'id': 'IWCE2020SS', // The id of the pass. Product Name or ID are required.
- 'price': '275', // Price from actual column
- 'category': 'IWCE20' // the name of the event
- 'quantity': 1
- },
- {
- 'name': 'PRIORITY LOUNGE',
- 'id': 'IWCE2020LOUNGE', // The id of the pass. Product Name or ID are required.
- 'price': '300', // Price from actual column
- 'category': 'IWCE20' // the name of the event
- 'quantity': 1
- }]
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement