INSR-9225: Update vin-lookup events to match what actually fires in Heritage
This commit is contained in:
parent
2a6171b58b
commit
fb297261f9
1 changed files with 2 additions and 2 deletions
|
|
@ -179,7 +179,7 @@ export default {
|
||||||
if (this.needToLookupVehicle) {
|
if (this.needToLookupVehicle) {
|
||||||
try {
|
try {
|
||||||
const vehicleLookupResponse = await this.lookupVehicleByVin(this.vin);
|
const vehicleLookupResponse = await this.lookupVehicleByVin(this.vin);
|
||||||
this.pushEventToGA("VIN", "TEXT", "SUCCESS", true, null, '1');
|
this.pushEventToGA("policy_vehicle", "VIN_lookup", "SUCCESS", true, null, '1');
|
||||||
|
|
||||||
if (!vehicleLookupResponse.data.canSafeliteService) {
|
if (!vehicleLookupResponse.data.canSafeliteService) {
|
||||||
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(vehicleLookupResponse.data.carId));
|
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(vehicleLookupResponse.data.carId));
|
||||||
|
|
@ -196,6 +196,7 @@ export default {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
this.pushEventToGA("policy_vehicle", "VIN_lookup", "FAIL", true, null, '0');
|
||||||
if (e.status === 404) {
|
if (e.status === 404) {
|
||||||
this.activeVehicleLookupAlertType = vehicleLookupAlertTypes.NOT_FOUND;
|
this.activeVehicleLookupAlertType = vehicleLookupAlertTypes.NOT_FOUND;
|
||||||
this.resetVehicleFromLookup();
|
this.resetVehicleFromLookup();
|
||||||
|
|
@ -203,7 +204,6 @@ export default {
|
||||||
// because the form itself actually passes its client-side validation.
|
// because the form itself actually passes its client-side validation.
|
||||||
// SSR-189 Scenario #4.
|
// SSR-189 Scenario #4.
|
||||||
this.$refs.siteFooter.enableForwardAction();
|
this.$refs.siteFooter.enableForwardAction();
|
||||||
this.pushEventToGA("VIN", "TEXT", "NO VEHICLE FOUND", true, null, '0');
|
|
||||||
showIssLoadingModal(false);
|
showIssLoadingModal(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue