Merge branch 'release/2025.11.20' into rlsmerge/2025.11.20-to-dev
This commit is contained in:
commit
ec6933e121
2 changed files with 10 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue