65
34
99
1
1
2
1
23
6
3
6
59
8
5
96
10
1
2
2
8
58
284
35
1
16
1
3
1
48
62
27
51
52
20
2
10
4
26
2
1
17
8
4
2
2
1
11
6
3
30
4
3
42
78
6
3
12
53
32
6
52
5
27
2
51
48
98
1
78
9
12
2
1
3
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 }); } }