Advertisement
CharlotteVDB

GA4 - add_shipping_info - CARDOEN

Jul 15th, 2022 (edited)
822
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.dataLayer = window.dataLayer || [];
  2. window.dataLayer.push({
  3.   event: 'add_shipping_info',           // name of the event. In this case, it always must be add_shipping_info
  4.   ecommerce: { 
  5.  shipping_tier: 'Antwerpen',    // Cardoen supermarket                 
  6.     items: [{                           // an array where all currently viewed products must be included
  7.       item_name: 'Volkswagen Golf VIII TSI life 110',           // insert an actual product name
  8.       item_id: '221509',                // insert an actual product ID
  9.       price: '100.00',                  // insert an actual product price. Number or a string. Don't include currency code
  10.       item_brand: 'Volkswagen',         // insert an actual product price
  11.       item_category: 'New',         // category of a product (new versus second hand)
  12.       item_category2: 'Cardoen',        // origin of the car (Cardoen/ Aramis)
  13.       item_category3: '€ 10.000 - € 15.000',        // price range of the car
  14.       item_category4: 'SUV',        // type of car
  15.       item_variant: 'Diesel',               // fuel of the car
  16.       index: 1,                         // insert product's position in that list
  17.       quantity: '1'                     // product quantity
  18.     }]
  19.   }
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement