Merge pull request #1200 from Safelite/feature/humphries/INSR-8882.1

INSR-8882: Address some missing/new events
This commit is contained in:
AHumphriesSL 2026-04-23 14:34:05 -04:00 committed by GitHub
commit 05b0721c24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

View file

@ -630,8 +630,9 @@ export default {
const repairOrReplace = this.submittedOrder.isRepair ? 'repair' : 'replace';
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) {
const paymentMethodForAnalytics = analyticsPaymentTypeMap.get(this.payment.paymentMethod);
this.pushEventToGA('payment_page', 'pia_successful', paymentMethodForAnalytics, true);
}

View file

@ -119,7 +119,7 @@ export default {
},
mounted() {
showIssLoadingModal(true);
this.pushEventToGA('payment_page', 'Mode', 'Adyen', true);
this.handleAnalyticsEventsOnMounted()
this.initializeAdyen().finally(() => {
showIssLoadingModal(false);
});
@ -584,6 +584,11 @@ export default {
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
}
};

View file

@ -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_CUSTOMER_PORTAL_URL = 'https://myaccountdev.safelite.com/';
process.env.VUE_APP_GOOGLE_PLACES_API_KEY = 'AIzaSyCuLhQcDdZTTb4JzpUFms1OCch2dk5lHF0';