Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
add some console statements to test what's happening
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotFriend committed Sep 26, 2023
1 parent c756dc4 commit a042546
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/ReaderFeedback/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ 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',
eventAction: 'feedback',
eventLabel: pageId,
eventValue: value,
});
} else {
console.log('window.ga is not available')
}
setFeedbackGiven(true);
};
Expand Down

0 comments on commit a042546

Please sign in to comment.