feat: clean ga (#45107)
This commit is contained in:
@ -15,7 +15,7 @@ const GaTypes = { event: ga.event, page: ga.pageview, modal: ga.modalview };
|
|||||||
function* callGaType({ payload: { type, data } }) {
|
function* callGaType({ payload: { type, data } }) {
|
||||||
if (
|
if (
|
||||||
type === 'event' &&
|
type === 'event' &&
|
||||||
data.category.includes('Donation') &&
|
data.category.toLowerCase().includes('donation') &&
|
||||||
aBTestConfig.isTesting
|
aBTestConfig.isTesting
|
||||||
) {
|
) {
|
||||||
const email = yield select(emailSelector);
|
const email = yield select(emailSelector);
|
||||||
@ -25,7 +25,7 @@ function* callGaType({ payload: { type, data } }) {
|
|||||||
let viewType = null;
|
let viewType = null;
|
||||||
|
|
||||||
// set the modal type
|
// set the modal type
|
||||||
if (data.action.includes('Modal')) {
|
if (data.action.toLowerCase().includes('modal')) {
|
||||||
const recentlyClaimedBlock = yield select(recentlyClaimedBlockSelector);
|
const recentlyClaimedBlock = yield select(recentlyClaimedBlockSelector);
|
||||||
viewType = recentlyClaimedBlock ? 'block' : 'progress';
|
viewType = recentlyClaimedBlock ? 'block' : 'progress';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user