misc adjustment for logging
misc adjustment for logging
This commit is contained in:
parent
e85a4e64e1
commit
b2ab78e339
2 changed files with 5 additions and 0 deletions
|
|
@ -958,6 +958,8 @@ function getPageNameFromRouter() {
|
|||
) {
|
||||
return router.currentRoute.value.name;
|
||||
}
|
||||
|
||||
return window.location.href.replace(/\/$/, "").split("/").pop();
|
||||
}
|
||||
|
||||
function getValueToLog(value, valueToLogType) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue