From fa5c697d2a76f6697cf9ca09052f2b293c99657e Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Mon, 14 Feb 2022 12:26:56 +0300 Subject: [PATCH] feat: clean ga (#45107) --- client/src/redux/ga-saga.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/redux/ga-saga.js b/client/src/redux/ga-saga.js index 51fd0b96f0..0a49baac18 100644 --- a/client/src/redux/ga-saga.js +++ b/client/src/redux/ga-saga.js @@ -15,7 +15,7 @@ const GaTypes = { event: ga.event, page: ga.pageview, modal: ga.modalview }; function* callGaType({ payload: { type, data } }) { if ( type === 'event' && - data.category.includes('Donation') && + data.category.toLowerCase().includes('donation') && aBTestConfig.isTesting ) { const email = yield select(emailSelector); @@ -25,7 +25,7 @@ function* callGaType({ payload: { type, data } }) { let viewType = null; // set the modal type - if (data.action.includes('Modal')) { + if (data.action.toLowerCase().includes('modal')) { const recentlyClaimedBlock = yield select(recentlyClaimedBlockSelector); viewType = recentlyClaimedBlock ? 'block' : 'progress'; }