Advertisement
CharlotteVDB

GA4 - purchase - CARDOEN

Jul 28th, 2022 (edited)
1,077
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: 'purchase',            // name of the event. In this case, it always must be purchase
  4.   ecommerce: { 
  5.     currency: 'EUR',   
  6.     value: '250.00',                    // order total
  7.     transaction_id: 'abc123',           // transaction id
  8.     customer_email: 'test@example.com',           // customer email
  9.     customer_telephone: '+32494222436',           // customer telephone number (must always contain country code)                      
  10.     items: [{                          
  11.       item_name: 'Volkswagen Golf VIII TSI life 110',           // insert an actual product name
  12.       item_id: '221509',                // insert an actual product ID
  13.       price: '250.00',                                      // Number or a string. Don't include currency code
  14.       item_brand: 'Volkswagen',                             // car brand
  15.       item_category: 'city cars',                           // category of the car (body type)
  16.       item_category2: 'available'                           // available vs. reserved vs. sold
  17.       item_category3: 'superdeal'                           // superdeal or not ('no promotion')
  18.       item_category4: '12 months'                           // warranty
  19.       item_variant: 'Golf VIII TSI life 110',               // model
  20.       item_price_range: '10,000 - 15,000',                  // price range
  21.       item_cardoen_price: '11,499',                         // Cardoen price (= price minus takeover premium)
  22.       item_type: 'new'                                      // new vs. used
  23.       item_mileage: '55,014 km'                             // milage of the car
  24.       item_registration_year: '2019'                        // year of first registration
  25.       item_transmission: 'manual'                           // manual vs. automatic
  26.       item_fuel: 'diesel'                                   // fuel type (as specific as possible e.g. full hybride)
  27.       item_doors: '2/3'                                     // number of doors
  28.       item_seats: '2'                                       // number of seats
  29.       item_color: 'blue'                                    // color
  30.       quantity: '1'                     // product quantity
  31.     }]
  32.   }
  33. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement