From e85a4e64e1349c34d3ca129e71e22b52f020496b Mon Sep 17 00:00:00 2001 From: CarlNation Date: Fri, 14 Nov 2025 12:37:50 -0500 Subject: [PATCH 1/2] CASH-1757 CASH-1757 adjust styles for after pay banner --- .../afterpay-modal-banner/afterpay-modal-banner.vue | 3 ++- src/router/methods/helpers/consume-referral-info.js | 9 ++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue b/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue index 0e6cde03d..dfa68c9b4 100644 --- a/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue +++ b/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue @@ -163,6 +163,7 @@ export default { .callout { font-family: UrbanistSemibold, Arial, Helvetica, sans-serif; + white-space: nowrap; } > div:first-of-type { @@ -196,7 +197,7 @@ export default { } @include media-breakpoint-up(md) { padding-left: 1rem; - max-width: 32rem; + max-width: 36rem; } } } diff --git a/src/router/methods/helpers/consume-referral-info.js b/src/router/methods/helpers/consume-referral-info.js index 93ba6f7d6..87700d500 100644 --- a/src/router/methods/helpers/consume-referral-info.js +++ b/src/router/methods/helpers/consume-referral-info.js @@ -6,10 +6,10 @@ import { updateOrCreateFunnelCookie } from "@/helpers/heritage-integration/cooki import { getFunnelCookie } from "@/helpers/heritage-integration/cookie-helper"; export async function consumeReferralQuerystrings() { - var referralNumber = getQuerystringParameter(queryStrings.REFERRAL_NUMBER); - var parentAccount = getQuerystringParameter(queryStrings.PARENT_ACCOUNT); - var correlationId = getQuerystringParameter(queryStrings.CORRELATION_ID); - var referralDate = null; + let referralNumber = getQuerystringParameter(queryStrings.REFERRAL_NUMBER); + let parentAccount = getQuerystringParameter(queryStrings.PARENT_ACCOUNT); + let correlationId = getQuerystringParameter(queryStrings.CORRELATION_ID); + let referralDate = null; // If no referral number in querystring, check if heritage funnel updated last. // This would indicate a customer that went to heritage but did not return through the @@ -30,7 +30,6 @@ export async function consumeReferralQuerystrings() { if (referralDate) { store.commit(storeMutations.UPDATE_REFERRAL_DATE, referralDate); } - // log(" --update cookie"); updateOrCreateFunnelCookie(); } } From b2ab78e339420caa83d783d82d37c4d74a0dceec Mon Sep 17 00:00:00 2001 From: CarlNation Date: Fri, 14 Nov 2025 13:46:50 -0500 Subject: [PATCH 2/2] misc adjustment for logging misc adjustment for logging --- src/mixins/analytics-mixin.js | 2 ++ src/router/methods/route-logic/error.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/mixins/analytics-mixin.js b/src/mixins/analytics-mixin.js index d52ce93b6..a77fe930a 100644 --- a/src/mixins/analytics-mixin.js +++ b/src/mixins/analytics-mixin.js @@ -958,6 +958,8 @@ function getPageNameFromRouter() { ) { return router.currentRoute.value.name; } + + return window.location.href.replace(/\/$/, "").split("/").pop(); } function getValueToLog(value, valueToLogType) { diff --git a/src/router/methods/route-logic/error.js b/src/router/methods/route-logic/error.js index d82080f88..fb9dd2cbc 100644 --- a/src/router/methods/route-logic/error.js +++ b/src/router/methods/route-logic/error.js @@ -6,6 +6,7 @@ import router from "@/router"; import { routeData, FUNNEL_START_PAGE } from "@/router/constants/routes"; import store from "@/store"; import { handleHardError } from "@/router/methods/error"; +import analyticsMixin from "@/mixins/analytics-mixin"; export async function errorBeforeEnter(to, from) { // Check if `hasAlreadyTriggeredErrror` is available. @@ -18,6 +19,7 @@ export async function errorBeforeEnter(to, from) { nextPage: to?.name, }; + analyticsMixin.methods.logDigitalConsumer(); await handleHardError(errorPayload); return; } @@ -31,6 +33,7 @@ export async function errorBeforeEnter(to, from) { nextPage: to?.name, }; + analyticsMixin.methods.logDigitalConsumer(); await handleHardError(errorPayload); return; } else {