Merge pull request #2948 from Safelite/rlsmerge/2025.11.20-to-dev
Rlsmerge/2025.11.20 to dev
This commit is contained in:
commit
6c813f2fa5
2 changed files with 10 additions and 0 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
import analyticsMixin from "@/mixins/analytics-mixin";
|
import analyticsMixin from "@/mixins/analytics-mixin";
|
||||||
|
import store from "@/store";
|
||||||
|
import { storeMutations } from "@/constants/store-mutations";
|
||||||
|
|
||||||
export async function afterEach(to, from) {
|
export async function afterEach(to, from) {
|
||||||
|
store.commit(storeMutations.UPDATE_LAST_PAGE_VISITED, to.name);
|
||||||
|
|
||||||
// digital consumer logging
|
// digital consumer logging
|
||||||
analyticsMixin.methods.logDigitalConsumer();
|
analyticsMixin.methods.logDigitalConsumer();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ export async function consumeReferralQuerystrings() {
|
||||||
let parentAccount = getQuerystringParameter(queryStrings.PARENT_ACCOUNT);
|
let parentAccount = getQuerystringParameter(queryStrings.PARENT_ACCOUNT);
|
||||||
let correlationId = getQuerystringParameter(queryStrings.CORRELATION_ID);
|
let correlationId = getQuerystringParameter(queryStrings.CORRELATION_ID);
|
||||||
let referralDate = null;
|
let referralDate = null;
|
||||||
|
let savedSessionId = null;
|
||||||
|
|
||||||
// If no referral number in querystring, check if heritage funnel updated last.
|
// 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
|
// 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;
|
parentAccount = getFunnelCookie().ReferralParentAccountNumber;
|
||||||
correlationId = getFunnelCookie().ReferralCorrelationId;
|
correlationId = getFunnelCookie().ReferralCorrelationId;
|
||||||
referralDate = getFunnelCookie().ReferralDate;
|
referralDate = getFunnelCookie().ReferralDate;
|
||||||
|
savedSessionId = getFunnelCookie().SavedSessionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (referralNumber) {
|
if (referralNumber) {
|
||||||
|
|
@ -30,6 +32,10 @@ export async function consumeReferralQuerystrings() {
|
||||||
if (referralDate) {
|
if (referralDate) {
|
||||||
store.commit(storeMutations.UPDATE_REFERRAL_DATE, referralDate);
|
store.commit(storeMutations.UPDATE_REFERRAL_DATE, referralDate);
|
||||||
}
|
}
|
||||||
|
if (savedSessionId) {
|
||||||
|
store.commit(storeMutations.UPDATE_SAVED_SESSION_ID, savedSessionId);
|
||||||
|
}
|
||||||
|
|
||||||
updateOrCreateFunnelCookie();
|
updateOrCreateFunnelCookie();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue