From 22cee7a5e929f70effb94806d6c680365a38831b Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Tue, 1 Aug 2023 16:18:21 +0530 Subject: [PATCH] zip code GA event zip code GA event at get damage-options --- src/constants/analytics.js | 6 ++---- src/layouts/vehicle-damage/vehicle-damage.vue | 19 +++---------------- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/src/constants/analytics.js b/src/constants/analytics.js index 2b0fc1a8f..9d35ba6b5 100644 --- a/src/constants/analytics.js +++ b/src/constants/analytics.js @@ -11,8 +11,7 @@ const GaEvents = { const GaCategories = { API_RESPONSE: "Api_Response", - EVOX: "Evox", - FUNNEL_ENTRY: "funnel_entry", + EVOX: "Evox", }; const GaActions = { @@ -20,8 +19,7 @@ const GaActions = { CLICKED: "Clicked", VIF: "vif", SUBMITTED: "Submitted", - DISPLAYED: "Displayed", - ZIP_CODE_PROVIDED: "zip_code_provided", + DISPLAYED: "Displayed", }; const GaLabels = { diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index 6ea4fe81d..134038348 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -145,8 +145,7 @@ export default { selectedPassengerSideReplaceOptions: this.getPassengerSideReplaceOptionsFromStore(), }, selectedWindshieldOptions: this.getWindshieldOptionsFromStore(), - selectedRearReplaceOptions: this.getRearReplaceOptionsFromStore(), - serviceZipCode: this.getZipFromStore() ?? this.$route.query.zipcode, + selectedRearReplaceOptions: this.getRearReplaceOptionsFromStore(), }; }, mounted() { @@ -168,21 +167,9 @@ export default { this.$store.getters.vehicle.carId, true ); - } - if (this.serviceZipCode) { - this.pushEventToGA( - this.GaCategories.FUNNEL_ENTRY, - this.GaActions.ZIP_CODE_PROVIDED, - this.serviceZipCode, - true - ); - } + } }, - - getZipFromStore() { - return this.$store.getters.order.serviceLocation.zipCode; - }, - + backButtonAction() { // route to move backwards this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);