window.dataLayer = window.dataLayer || []; dataLayer.push({ 'event' : 'FormSubmission', 'event_category' : 'New Vehicle Enquiry' })
/* jQuery('#bfb-popup-openbfb31').on('click', function () { if ($('#new_car_location select[name=location]').length != 0) { let vehicle_type = 'Car'; if (location.pathname.includes('/vans/')) { vehicle_type = 'Van'; } if ($('#vehicle_type .ppbd-product-attribute').length != 0) { vehicle_type = $('#vehicle_type .ppbd-product-attribute').html().trim(); } let lead_type = 'NWV'; if (vehicle_type == 'Car') { lead_type = 'NWC'; } if ($('#product_name .ppbd-product-attribute').length != 0) { let product_name = $('#product_name .ppbd-product-attribute').html().trim().toLowerCase(); if (product_name.startsWith("seat ")) { $('#new_car_location select[name=location]').html(''); } if (product_name.startsWith("cupra ")) { $('#new_car_location select[name=location]').html(''); } if (product_name.startsWith("skoda ")) { $('#new_car_location select[name=location]').html(''); } if (product_name.startsWith("honda ")) { $('#new_car_location select[name=location]').html(''); } if (product_name.startsWith("ford ")) { $('#new_car_location select[name=location]').html(''); } if (product_name.startsWith("kia ")) { $('#new_car_location select[name=location]').html(''); } } if ($('#vehicle_type .ppbd-product-attribute').length != 0) { } } if ($('#product_name .ppbd-product-attribute').length != 0) { let product_name = $('#product_name .ppbd-product-attribute').html().trim(); let product_sku = $('#product_sku .ppbd-product-attribute').html().trim(); $('#new_car_model input[name=model]').val(product_name + ' (' + product_sku + ')'); } });*/