Merge pull request #1200 from Safelite/feature/humphries/INSR-8882.1
INSR-8882: Address some missing/new events
This commit is contained in:
commit
05b0721c24
3 changed files with 9 additions and 3 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) ?? 'UNKNOWN';
|
||||||
|
this.pushEventToGA('payment_method', 'pia', paymentMethod, true);
|
||||||
|
},
|
||||||
showIssLoadingModal
|
showIssLoadingModal
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
process.env.VUE_APP_CONSUMER_CF_DISTRO = 'https://digitalapi.dev.safelite.io';
|
process.env.VUE_APP_CONSUMER_CF_DISTRO = 'https://digitalapi.test.safelite.io';
|
||||||
process.env.VUE_APP_CURRENT_ENVIRONMENT = 'Localhost';
|
process.env.VUE_APP_CURRENT_ENVIRONMENT = 'Localhost';
|
||||||
process.env.VUE_APP_CUSTOMER_PORTAL_URL = 'https://myaccountdev.safelite.com/';
|
process.env.VUE_APP_CUSTOMER_PORTAL_URL = 'https://myaccountdev.safelite.com/';
|
||||||
process.env.VUE_APP_GOOGLE_PLACES_API_KEY = 'AIzaSyCuLhQcDdZTTb4JzpUFms1OCch2dk5lHF0';
|
process.env.VUE_APP_GOOGLE_PLACES_API_KEY = 'AIzaSyCuLhQcDdZTTb4JzpUFms1OCch2dk5lHF0';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue