From 1216b121a8696602c8a921997bb574b939293f54 Mon Sep 17 00:00:00 2001 From: Katie Date: Fri, 12 Aug 2022 13:20:58 -0400 Subject: [PATCH] CSR-514 Move runExperiments to after we check the page to reroute to --- src/router/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index afc5b6074..ea4c5cbcc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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();