CSR-514 Move runExperiments to after we check the page to reroute to

This commit is contained in:
Katie 2022-08-12 13:20:58 -04:00
parent febbe96534
commit 1216b121a8

View file

@ -37,8 +37,6 @@ const routes = [
return next(false);
}
runExperiments(to.query.fmgPage);
// If the saved session has timed out, clear the session, execute 404 logic.
if (getFunnelCookie() !== null && !isSavedSessionStillActive()) {
await baseMixin.methods.dispatchStoreAction(storeActions.RESET_STATE);
@ -64,6 +62,8 @@ const routes = [
to.query.fmgPage = pageToRedirectTo;
}
runExperiments(to.query.fmgPage);
// Process funnel cookie.
updateOrCreateFunnelCookie();