Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- gtag('event', 'add_to_cart', {
- "currency": "EUR",
- "value": 2, // Price (or sum of prices if quantity is more than 1) for the product added to cart
- "items": [ // Array with the product added to cart
- {
- "id": "P12345",
- "name": "Android Warhol T-Shirt",
- "brand": "Google",
- "category": "Apparel/T-Shirts",
- "variant": "Black",
- "quantity": 1,
- "price": 2,
- "google_business_vertical": "retail"
- }
- ]
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement