INSR-8883: Add events to provider-preference
This commit is contained in:
parent
e5318a947b
commit
6e5a6411ab
4 changed files with 23 additions and 0 deletions
|
|
@ -158,11 +158,13 @@ export default {
|
||||||
scheduleWithSafelite() {
|
scheduleWithSafelite() {
|
||||||
this.mainStore.updateIsSafeliteProvider(true);
|
this.mainStore.updateIsSafeliteProvider(true);
|
||||||
const scenario = this.navigationScenarios.CLICKED_FORWARD_WITH_SAFELITE;
|
const scenario = this.navigationScenarios.CLICKED_FORWARD_WITH_SAFELITE;
|
||||||
|
this.pushEventToGA('prefered_provider', 'Safelite', this.mainStore.accountNameForEvents, true);
|
||||||
this.navigateForward(scenario);
|
this.navigateForward(scenario);
|
||||||
},
|
},
|
||||||
scheduleWithTPA() {
|
scheduleWithTPA() {
|
||||||
this.mainStore.updateIsSafeliteProvider(false);
|
this.mainStore.updateIsSafeliteProvider(false);
|
||||||
const scenario = this.navigationScenarios.CLICKED_FORWARD_WITH_TPA_ENABLED;
|
const scenario = this.navigationScenarios.CLICKED_FORWARD_WITH_TPA_ENABLED;
|
||||||
|
this.pushEventToGA('prefered_provider', 'TPA', this.mainStore.accountNameForEvents, true);
|
||||||
this.navigateForward(scenario);
|
this.navigateForward(scenario);
|
||||||
},
|
},
|
||||||
findAnotherShopClicked() {
|
findAnotherShopClicked() {
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openModal() {
|
openModal() {
|
||||||
|
this.pushEventToGA('prefered_provider', 'display_modal', 'right_to_choose', true);
|
||||||
this.$refs[this.ModalName].openModal();
|
this.$refs[this.ModalName].openModal();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
:footerButtonText="ModalCloseButtonText"
|
:footerButtonText="ModalCloseButtonText"
|
||||||
:isButtonDisabled="isButtonDisabled"
|
:isButtonDisabled="isButtonDisabled"
|
||||||
@footerButtonEvent="footerButtonClick"
|
@footerButtonEvent="footerButtonClick"
|
||||||
|
@isModalOpened="handleModelOpenedEvent"
|
||||||
:displayCloseButton="false"
|
:displayCloseButton="false"
|
||||||
:displayCloseLink="true">
|
:displayCloseLink="true">
|
||||||
<div class="form-test-invalid">
|
<div class="form-test-invalid">
|
||||||
|
|
@ -137,11 +138,14 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openModal() {
|
openModal() {
|
||||||
|
this.pushEventToGA('ADAS_self_service', 'acknowledge_recal', 'TPA_displayed_message', true);
|
||||||
this.$refs[this.ModalName].openModal();
|
this.$refs[this.ModalName].openModal();
|
||||||
},
|
},
|
||||||
|
|
||||||
footerButtonClick() {
|
footerButtonClick() {
|
||||||
if (this.tpaRecalAnswer && (!this.showAcknowledgementCheckbox || this.acknowledged)) {
|
if (this.tpaRecalAnswer && (!this.showAcknowledgementCheckbox || this.acknowledged)) {
|
||||||
|
const eventLabel = this.tpaRecalAnswer === PROVIDER_PREFERENCE_OPTIONS.SAFELITE === 'yes' ? 'TPA_schedule_with_safelite' : 'TPA_accept';
|
||||||
|
this.pushEventToGA('ADAS_self_service', 'acknowledge_recal', eventLabel, true);
|
||||||
this.$refs[this.ModalName]?.closeModal();
|
this.$refs[this.ModalName]?.closeModal();
|
||||||
this.$emit('buttonClick', this.tpaRecalAnswer);
|
this.$emit('buttonClick', this.tpaRecalAnswer);
|
||||||
} else if (!this.tpaRecalAnswer) {
|
} else if (!this.tpaRecalAnswer) {
|
||||||
|
|
@ -151,6 +155,11 @@ export default {
|
||||||
this.showAcknowledgementError = true;
|
this.showAcknowledgementError = true;
|
||||||
this.showNoSelectionError = false;
|
this.showNoSelectionError = false;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
handleModelOpenedEvent(isOpened) {
|
||||||
|
if (!isOpened) {
|
||||||
|
this.pushEventToGA('ADAS_self_service', 'acknowledge_recal', 'TPA_decline', true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,17 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClickToggle() {
|
handleClickToggle() {
|
||||||
|
let coverageType = '';
|
||||||
|
if (this.mainStore.isItac) {
|
||||||
|
coverageType = 'ITAC';
|
||||||
|
} else if (this.mainStore.isNoComp) {
|
||||||
|
coverageType = 'no_comp';
|
||||||
|
} else if (this.mainStore.isVerified) {
|
||||||
|
coverageType = 'verified';
|
||||||
|
} else {
|
||||||
|
coverageType = 'unverified';
|
||||||
|
}
|
||||||
|
this.pushEventToGA('ADAS_self_service', 'WSN_learn_more_clicked', coverageType, true);
|
||||||
this.isDetailVisible = !this.isDetailVisible;
|
this.isDetailVisible = !this.isDetailVisible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue