Advertisement
CharlotteVDB

GA4 - view_item - CARDOEN

May 22nd, 2023 (edited)
564
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: 'view_item',           // name of the event. In this case, it always must be view_item
  4.   ecommerce: {                         
  5.     items: [{                           // an array where all currently viewed products must be included
  6.       item_name: 'Volkswagen Golf VIII TSI life 110',           // insert an actual car name
  7.       item_id: '221509',                // insert an actual product ID
  8.       price: '250.00',                                      // Number or a string. Don't include currency code
  9.       item_brand: 'Volkswagen',                             // car brand
  10.       item_category: 'city cars',                           // category of the car (body type)
  11.       item_category2: 'available'                           // available vs. reserved vs. sold
  12.       item_category3: 'superdeal'                           // superdeal or not ('no promotion')
  13.       item_category4: '12 months'                           // warranty
  14.       item_variant: 'Golf VIII TSI life 110',               // model
  15.       item_price_range: '10,000 - 15,000',                  // price range
  16.       item_cardoen_price: '11,499',                         // Cardoen price (= price minus takeover premium)
  17.       item_type: 'new'                                      // new vs. used
  18.       item_mileage: '55,014 km'                             // milage of the car
  19.       item_registration_year: '2019'                        // year of first registration
  20.       item_transmission: 'manual'                           // manual vs. automatic
  21.       item_fuel: 'diesel'                                   // fuel type (as specific as possible e.g. full hybride)
  22.       item_doors: '2/3'                                     // number of doors
  23.       item_seats: '2'                                       // number of seats
  24.       item_color: 'blue'                                    // color
  25.       quantity: '1'                     // product quantity
  26.     }]
  27.   }
  28. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement