315
364
151
75
7
2
2
144
9
1
1
3
3
70
68
132
1
679
1226
1074
1498
158
1
1
1
10
18
2
1
64
1
487
62
7
1
627
26
18
413
175
47
330
3
2
4
1
1
112
1
1
3
1
21
1
8
6
589
84
104
516
28
672
7
219
12
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 }); } }