Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dataLayer.push({
- "ecommerce": {
- "purchase": {
- "actionField": {
- "currencyCode": "NOK",
- "id": "order id", //coming for your backend system
- "affiliation": "Online Store",
- "revenue": "250.00",
- "shipping": "20.00",
- "coupon": "activity code", //order specific
- },
- "products": [{
- "id":"12345”,
- "name": "Bok: Viktingtidens utbrudd", //name or id is required
- "price": "250.00",
- "category": "Hardcover",
- "quantity": 1
- }, {
- Product 2 //optional
- }]
- }
- },
- "event": "purchase"
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement