Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: "GA4_begin_checkout", // name of the event. In this case, it always must be GA4_begin_checkout
- ecommerce: {
- currency: "GBP",
- value: 100.00, // total value - all items
- items: [
- {
- item_id: "product1", // insert an actual product id
- item_name: "2013 Blanc de Blancs Brut", // insert an product name
- item_brand: "Item brand", // insert an actual product brand
- item_category: "Standard Bottles Wine", // insert an actual product top-level category
- price: 65.00, // insert an actual product price
- quantity: 1 // product quantity
- },
- {
- item_id: "product2", // insert an actual product id
- item_name: "Non Vintage Brut", // insert an product name
- item_brand: "Item brand", // insert an actual product brand
- item_category: "Standard Bottles Wine", // insert an actual product top-level category
- price: 35.00, // insert an actual product price
- quantity: 1 // product quantity
- }]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement