679
547
3
8
240
127
21
1
3
1
3
1
244
24
3
1
4
1
1
130
5
114
7
239
6
1226
679
1074
1498
158
3
54
1
4
11
1
2
6
1
1143
28
148
812
232
3
314
506
347
12
4
642
16
1
47
2
1
3
2
1
3
125
1
1
1
3
6
1
2
2
1
21
1
28
1128
70
849
176
201
358
1
function trackSearch(vehiclesArray) { if (vehiclesArray != undefined) { fbq('track', 'Search', { content_type: 'vehicle', // REQUIRED: DO NOT change this, must be set to 'vehicle' content_ids: vehiclesArray, // REQUIRED: array of vehicle IDs postal_code: '', // RECOMMENDED country: 'United States', // RECOMMENDED don't use abbreviations make: '', // RECOMMENDED model: '', // RECOMMENDED year: '', // RECOMMENDED state_of_vehicle: '', // RECOMMENDED exterior_color: '', // RECOMMENDED transmission: '', // RECOMMENDED body_style: '', // RECOMMENDED fuel_type: '', // RECOMMENDED drivetrain: '', // RECOMMENDED price: 0, // RECOMMENDED, up to 2 decimals optional currency: 'USD', // REQUIRED if price and preferred_price_range is used value: 0.00, preferred_price_range: '' // Optional up to two decimals, min,max }); } console.log(vehiclesArray); } function trackLead(vehicle) { console.log(vehicle); if (vehicle != undefined && vehicle != "") { var array = []; array.push(vehicle.Vin); fbq('track', 'Lead', { content_type: 'vehicle', // REQUIRED: DO NOT change this, must be set to 'vehicle' content_ids: array, // REQUIRED: array of vehicle IDs vin: vehicle.Vin, postal_code: '', // RECOMMENDED country: 'United States', // RECOMMENDED don't use abbreviations make: vehicle.Make, // RECOMMENDED model: vehicle.Model, // RECOMMENDED year: vehicle.Year, // RECOMMENDED state_of_vehicle: vehicle.AgeNew, // RECOMMENDED exterior_color: '', // RECOMMENDED transmission: '', // RECOMMENDED body_style: vehicle.BodyGroup, // RECOMMENDED fuel_type: '', // RECOMMENDED drivetrain: '', // RECOMMDENDED price: vehicle.Price, // RECOMMENDED, up to 2 decimals optional currency: 'USD', // REQUIRED if price and preferred_price_range is used value: 0.00, preferred_price_range: '' // Optional up to two decimals, min,max }); } } function trackContent(vehicle) { console.log(vehicle); if (vehicle != undefined) { var array = []; array.push(vehicle.vin); fbq('track', 'ViewContent', { content_type: 'vehicle', // REQUIRED: DO NOT change this, must be set to 'vehicle' content_ids: array, // REQUIRED: array of vehicle IDs vin: vehicle.vin, postal_code: '', // RECOMMENDED country: 'United States', // RECOMMENDED don't use abbreviations make: vehicle.make, // RECOMMENDED model: vehicle.model, // RECOMMENDED year: vehicle.year, // RECOMMENDED state_of_vehicle: vehicle.newUsed, // RECOMMENDED exterior_color: vehicle.exteriorColor, // RECOMMENDED transmission: vehicle.transmission, // RECOMMENDED body_style: vehicle.body, // RECOMMENDED fuel_type: vehicle.fuelType, // RECOMMENDED drivetrain: vehicle.drivetrain, // RECOMMENDED price: vehicle.price, // RECOMMENDED, up to 2 decimals optional currency: 'USD', // REQUIRED if price and preferred_price_range is used value: 0.00, preferred_price_range: '' // Optional up to two decimals, min,max }); } }