Merge branch 'release/2025.11.20' into rlsmerge/2025.11.20-to-dev

This commit is contained in:
CarlNation 2025-11-20 08:40:56 -05:00
commit ec6933e121
2 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,10 @@
import analyticsMixin from "@/mixins/analytics-mixin";
import store from "@/store";
import { storeMutations } from "@/constants/store-mutations";
export async function afterEach(to, from) {
store.commit(storeMutations.UPDATE_LAST_PAGE_VISITED, to.name);
// digital consumer logging
analyticsMixin.methods.logDigitalConsumer();

View file

@ -10,6 +10,7 @@ export async function consumeReferralQuerystrings() {
let parentAccount = getQuerystringParameter(queryStrings.PARENT_ACCOUNT);
let correlationId = getQuerystringParameter(queryStrings.CORRELATION_ID);
let referralDate = null;
let savedSessionId = 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
@ -20,6 +21,7 @@ export async function consumeReferralQuerystrings() {
parentAccount = getFunnelCookie().ReferralParentAccountNumber;
correlationId = getFunnelCookie().ReferralCorrelationId;
referralDate = getFunnelCookie().ReferralDate;
savedSessionId = getFunnelCookie().SavedSessionId;
}
if (referralNumber) {
@ -30,6 +32,10 @@ export async function consumeReferralQuerystrings() {
if (referralDate) {
store.commit(storeMutations.UPDATE_REFERRAL_DATE, referralDate);
}
if (savedSessionId) {
store.commit(storeMutations.UPDATE_SAVED_SESSION_ID, savedSessionId);
}
updateOrCreateFunnelCookie();
}
}