142
124
33
62
15
43
3
42
3
13
24
5
1
22
3
17
3
10
1
3
2
6
3
6
10
20
1
82
2
7
2
13
3
3
18
7
1
2
10
2
1
19
2
4
48
36
1
1
55
1
31
28
60
1
75
176
15
2
15
249
103
160
3
74
116
69
2
242
1
3
256
10
264
2
263
3
2
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 }); } }