Skip to content

Commit

Permalink
Merge pull request #111 from polywrap/dev
Browse files Browse the repository at this point in the history
merge dev to main
  • Loading branch information
dOrgJelli authored Sep 1, 2023
2 parents 67cae91 + dde6a5f commit 60a1215
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/browser/src/components/googleAnalytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ interface Window {
if (window.gtag) { // Check if gtag is initialized
window.gtag('event', 'message_sent', {
'event_category': 'Chat',
'event_label': 'GOALS',
'value': message // The actual message content
'event_label': message, // Log the message as a label
'value': 1 // 1 message was sent
});
console.log('GA event sent');
} else {
Expand All @@ -19,4 +19,4 @@ interface Window {
console.log('Error sending GA event:', error);
}
};


0 comments on commit 60a1215

Please sign in to comment.