From a04254651180bf1f693f1c086c363a0f5610d6f1 Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Tue, 26 Sep 2023 10:13:10 -0500 Subject: [PATCH] add some console statements to test what's happening --- src/components/ReaderFeedback/index.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ReaderFeedback/index.jsx b/src/components/ReaderFeedback/index.jsx index efc87731..956ddf43 100644 --- a/src/components/ReaderFeedback/index.jsx +++ b/src/components/ReaderFeedback/index.jsx @@ -13,6 +13,7 @@ const ReaderFeedback = ({ pageId }) => { const giveFeedback = (value) => { if (window.ga) { + console.log('i am sending the event to ga') window.ga('send', { hitType: 'event', eventCategory: 'button', @@ -20,6 +21,8 @@ const ReaderFeedback = ({ pageId }) => { eventLabel: pageId, eventValue: value, }); + } else { + console.log('window.ga is not available') } setFeedbackGiven(true); };