CSR-1072 do not run analytics calls without page name
This commit is contained in:
CarlNation 2024-03-01 15:39:39 -05:00
parent 4a03629754
commit 1b1702ed5f
2 changed files with 9 additions and 1 deletions

View file

@ -72,7 +72,7 @@ const routes = [
// the saveSessionPromise will no longer point to a valid promise // the saveSessionPromise will no longer point to a valid promise
baseMixin.methods.dispatchStoreAction(storeActions.RESET_SAVE_SESSION_PROMISE); baseMixin.methods.dispatchStoreAction(storeActions.RESET_SAVE_SESSION_PROMISE);
if (!to.query.fmgPage.startsWith("payment")) { if (!to.query.fmgPage?.startsWith("payment")) {
//payment pages used to return from safelitehop so exclude here //payment pages used to return from safelitehop so exclude here
// Remove the parameter after quote release // Remove the parameter after quote release
const loadSessionResponse = await loadSessionIfPresent( const loadSessionResponse = await loadSessionIfPresent(

View file

@ -1101,6 +1101,10 @@ export const actions = {
parentAccountNumber, parentAccountNumber,
} }
) { ) {
if (!pageName) {
return;
}
var payload = { var payload = {
userId: userId, userId: userId,
sessionKey: sessionKey, sessionKey: sessionKey,
@ -1149,6 +1153,10 @@ export const actions = {
parentAccountNumber, parentAccountNumber,
} }
) { ) {
if (!pageName) {
return;
}
var payload = { var payload = {
userId: userId, userId: userId,
sessionKey: sessionKey, sessionKey: sessionKey,