Merge pull request #2942 from Safelite/nation/CASH-1757

CASH-1757
This commit is contained in:
CarlNation 2025-11-14 14:05:00 -05:00 committed by GitHub
commit 3203e78876
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 6 deletions

View file

@ -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;
}
}
}

View file

@ -958,6 +958,8 @@ function getPageNameFromRouter() {
) {
return router.currentRoute.value.name;
}
return window.location.href.replace(/\/$/, "").split("/").pop();
}
function getValueToLog(value, valueToLogType) {

View file

@ -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();
}
}

View file

@ -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 {