DigitalConsumer.FixMyGlass/src/router/methods/after-each.js
CarlNation d1ebb59cbb CASH-2497 log full querystring on init session
CASH-2497 log full querystring on init session
2026-03-26 13:55:27 -04:00

19 lines
639 B
JavaScript

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 fmg session logging to snowflake
analyticsMixin.methods.pushFmgSessionData();
// Push page view to GA
analyticsMixin.methods.pushPageViewToGA();
// Push experiments to Data Layer
analyticsMixin.methods.pushExperimentsToDataLayer();
// Push current order status to Data Layer
analyticsMixin.methods.pushOrderToDataLayer();
}