From 79f99a723a17e0c4992f495904e4f9647cdc16b8 Mon Sep 17 00:00:00 2001 From: Surekha Weinberg Date: Wed, 23 Aug 2023 11:37:29 -0700 Subject: [PATCH 1/2] log a MORS event type for modals --- src/library/zoid/modal/component.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/library/zoid/modal/component.js b/src/library/zoid/modal/component.js index d1b58b452f..aceef96fa5 100644 --- a/src/library/zoid/modal/component.js +++ b/src/library/zoid/modal/component.js @@ -193,6 +193,14 @@ export default createGlobalVariableGetter('__paypal_credit_modal__', () => return () => { const { index, refIndex, src = 'show' } = props; + logger.track({ + index, + refIndex, + et: 'CLIENT_IMPRESSION', + event_type: 'MORS', + src + }); + logger.track({ index, refIndex, From eaed37e9256da17f65155f63d73bbe6c7bc4b173 Mon Sep 17 00:00:00 2001 From: Surekha Weinberg Date: Thu, 24 Aug 2023 09:09:38 -0700 Subject: [PATCH 2/2] move MORS event to onReady hook --- src/library/zoid/modal/component.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/library/zoid/modal/component.js b/src/library/zoid/modal/component.js index aceef96fa5..e1cfe7da25 100644 --- a/src/library/zoid/modal/component.js +++ b/src/library/zoid/modal/component.js @@ -193,14 +193,6 @@ export default createGlobalVariableGetter('__paypal_credit_modal__', () => return () => { const { index, refIndex, src = 'show' } = props; - logger.track({ - index, - refIndex, - et: 'CLIENT_IMPRESSION', - event_type: 'MORS', - src - }); - logger.track({ index, refIndex, @@ -298,6 +290,13 @@ export default createGlobalVariableGetter('__paypal_credit_modal__', () => duration: getCurrentTime() - renderStart }); + logger.track({ + index, + refIndex, + et: 'CLIENT_IMPRESSION', + event_type: 'MORS', + }); + logger.track({ index, refIndex,