Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'view_item', // name of the event. In this case, it always must be view_item
- ecommerce: {
- items: [{ // an array where all currently viewed products must be included
- item_name: 'Volkswagen Golf VIII TSI life 110', // insert an actual car name
- item_id: '221509', // insert an actual product ID
- price: '250.00', // Number or a string. Don't include currency code
- item_brand: 'Volkswagen', // car brand
- item_category: 'city cars', // category of the car (body type)
- item_category2: 'available' // available vs. reserved vs. sold
- item_category3: 'superdeal' // superdeal or not ('no promotion')
- item_category4: '12 months' // warranty
- item_variant: 'Golf VIII TSI life 110', // model
- item_price_range: '10,000 - 15,000', // price range
- item_cardoen_price: '11,499', // Cardoen price (= price minus takeover premium)
- item_type: 'new' // new vs. used
- item_mileage: '55,014 km' // milage of the car
- item_registration_year: '2019' // year of first registration
- item_transmission: 'manual' // manual vs. automatic
- item_fuel: 'diesel' // fuel type (as specific as possible e.g. full hybride)
- item_doors: '2/3' // number of doors
- item_seats: '2' // number of seats
- item_color: 'blue' // color
- quantity: '1' // product quantity
- }]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement