Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: "GA4_view_item", // name of the event. In this case, it always must be GA4_view_item
- ecommerce: {
- currency: "USD",
- value: 449.00, // total value (product value * quantity)
- items: [
- {
- item_id: "product1", // insert an actual product id
- item_name: "Wisco 561 16 Pizza Oven", // insert an product name
- item_brand: "Wisco Industries", // insert an actual product brand
- item_category: "Pizza Ovens & Warmers", // insert an actual product top-level category
- price: 449.00, // insert an actual product price
- quantity: 1 // product quantity
- }
- ]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement