commit
3203e78876
4 changed files with 11 additions and 6 deletions
|
|
@ -163,6 +163,7 @@ export default {
|
||||||
|
|
||||||
.callout {
|
.callout {
|
||||||
font-family: UrbanistSemibold, Arial, Helvetica, sans-serif;
|
font-family: UrbanistSemibold, Arial, Helvetica, sans-serif;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
> div:first-of-type {
|
> div:first-of-type {
|
||||||
|
|
@ -196,7 +197,7 @@ export default {
|
||||||
}
|
}
|
||||||
@include media-breakpoint-up(md) {
|
@include media-breakpoint-up(md) {
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
max-width: 32rem;
|
max-width: 36rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -958,6 +958,8 @@ function getPageNameFromRouter() {
|
||||||
) {
|
) {
|
||||||
return router.currentRoute.value.name;
|
return router.currentRoute.value.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return window.location.href.replace(/\/$/, "").split("/").pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getValueToLog(value, valueToLogType) {
|
function getValueToLog(value, valueToLogType) {
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@ import { updateOrCreateFunnelCookie } from "@/helpers/heritage-integration/cooki
|
||||||
import { getFunnelCookie } from "@/helpers/heritage-integration/cookie-helper";
|
import { getFunnelCookie } from "@/helpers/heritage-integration/cookie-helper";
|
||||||
|
|
||||||
export async function consumeReferralQuerystrings() {
|
export async function consumeReferralQuerystrings() {
|
||||||
var referralNumber = getQuerystringParameter(queryStrings.REFERRAL_NUMBER);
|
let referralNumber = getQuerystringParameter(queryStrings.REFERRAL_NUMBER);
|
||||||
var parentAccount = getQuerystringParameter(queryStrings.PARENT_ACCOUNT);
|
let parentAccount = getQuerystringParameter(queryStrings.PARENT_ACCOUNT);
|
||||||
var correlationId = getQuerystringParameter(queryStrings.CORRELATION_ID);
|
let correlationId = getQuerystringParameter(queryStrings.CORRELATION_ID);
|
||||||
var referralDate = null;
|
let referralDate = 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
|
||||||
|
|
@ -30,7 +30,6 @@ export async function consumeReferralQuerystrings() {
|
||||||
if (referralDate) {
|
if (referralDate) {
|
||||||
store.commit(storeMutations.UPDATE_REFERRAL_DATE, referralDate);
|
store.commit(storeMutations.UPDATE_REFERRAL_DATE, referralDate);
|
||||||
}
|
}
|
||||||
// log(" --update cookie");
|
|
||||||
updateOrCreateFunnelCookie();
|
updateOrCreateFunnelCookie();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import router from "@/router";
|
||||||
import { routeData, FUNNEL_START_PAGE } from "@/router/constants/routes";
|
import { routeData, FUNNEL_START_PAGE } from "@/router/constants/routes";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import { handleHardError } from "@/router/methods/error";
|
import { handleHardError } from "@/router/methods/error";
|
||||||
|
import analyticsMixin from "@/mixins/analytics-mixin";
|
||||||
|
|
||||||
export async function errorBeforeEnter(to, from) {
|
export async function errorBeforeEnter(to, from) {
|
||||||
// Check if `hasAlreadyTriggeredErrror` is available.
|
// Check if `hasAlreadyTriggeredErrror` is available.
|
||||||
|
|
@ -18,6 +19,7 @@ export async function errorBeforeEnter(to, from) {
|
||||||
nextPage: to?.name,
|
nextPage: to?.name,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
analyticsMixin.methods.logDigitalConsumer();
|
||||||
await handleHardError(errorPayload);
|
await handleHardError(errorPayload);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -31,6 +33,7 @@ export async function errorBeforeEnter(to, from) {
|
||||||
nextPage: to?.name,
|
nextPage: to?.name,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
analyticsMixin.methods.logDigitalConsumer();
|
||||||
await handleHardError(errorPayload);
|
await handleHardError(errorPayload);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue