INSR-8882: Address some missing/new events
This commit is contained in:
parent
03d18ba6a8
commit
6f8985f6a0
2 changed files with 8 additions and 2 deletions
|
|
@ -630,8 +630,9 @@ export default {
|
||||||
const repairOrReplace = this.submittedOrder.isRepair ? 'repair' : 'replace';
|
const repairOrReplace = this.submittedOrder.isRepair ? 'repair' : 'replace';
|
||||||
this.pushEventToGA('confirmation', 'safelite', `${mobileOrInshop}_${repairOrReplace}_${verifiedOrNotVerified}`, true);
|
this.pushEventToGA('confirmation', 'safelite', `${mobileOrInshop}_${repairOrReplace}_${verifiedOrNotVerified}`, true);
|
||||||
|
|
||||||
|
const paymentMethodForAnalytics = analyticsPaymentTypeMap.get(this.payment.paymentMethod) ?? 'UNKNOWN';
|
||||||
|
this.pushEventToGA('order_confirmed', 'payment_type_submitted', paymentMethodForAnalytics, true);
|
||||||
if (this.payment.isPayInAdvance) {
|
if (this.payment.isPayInAdvance) {
|
||||||
const paymentMethodForAnalytics = analyticsPaymentTypeMap.get(this.payment.paymentMethod);
|
|
||||||
this.pushEventToGA('payment_page', 'pia_successful', paymentMethodForAnalytics, true);
|
this.pushEventToGA('payment_page', 'pia_successful', paymentMethodForAnalytics, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
showIssLoadingModal(true);
|
showIssLoadingModal(true);
|
||||||
this.pushEventToGA('payment_page', 'Mode', 'Adyen', true);
|
this.handleAnalyticsEventsOnMounted()
|
||||||
this.initializeAdyen().finally(() => {
|
this.initializeAdyen().finally(() => {
|
||||||
showIssLoadingModal(false);
|
showIssLoadingModal(false);
|
||||||
});
|
});
|
||||||
|
|
@ -584,6 +584,11 @@ export default {
|
||||||
this.$route
|
this.$route
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
handleAnalyticsEventsOnMounted() {
|
||||||
|
this.pushEventToGA('payment_page', 'PIA Mode', 'Adyen', true);
|
||||||
|
const paymentMethod = analyticsPaymentTypeMap.get(this.piaType);
|
||||||
|
this.pushEventToGA('payment_method', 'pia', paymentMethod, true);
|
||||||
|
},
|
||||||
showIssLoadingModal
|
showIssLoadingModal
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue