From b2ab78e339420caa83d783d82d37c4d74a0dceec Mon Sep 17 00:00:00 2001 From: CarlNation Date: Fri, 14 Nov 2025 13:46:50 -0500 Subject: [PATCH] misc adjustment for logging misc adjustment for logging --- src/mixins/analytics-mixin.js | 2 ++ src/router/methods/route-logic/error.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/mixins/analytics-mixin.js b/src/mixins/analytics-mixin.js index d52ce93b6..a77fe930a 100644 --- a/src/mixins/analytics-mixin.js +++ b/src/mixins/analytics-mixin.js @@ -958,6 +958,8 @@ function getPageNameFromRouter() { ) { return router.currentRoute.value.name; } + + return window.location.href.replace(/\/$/, "").split("/").pop(); } function getValueToLog(value, valueToLogType) { diff --git a/src/router/methods/route-logic/error.js b/src/router/methods/route-logic/error.js index d82080f88..fb9dd2cbc 100644 --- a/src/router/methods/route-logic/error.js +++ b/src/router/methods/route-logic/error.js @@ -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 {