feat: add wallet_connected event tracking in Analytics#423
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds tracking for wallet connection events in Google Analytics. When a user's wallet address changes, a wallet_connected event is now sent to both the backend analytics service and Google Analytics with details about the previous and current wallet addresses.
Key Changes:
- Added
wallet_connectedto the list of trackable events - Implemented a useEffect hook to monitor wallet address changes and trigger analytics events
- Refactored
sendGaEventfrom a regular function to auseCallbackhook to enable its use in other hooks
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
create event in the data for wallet connect
https://github.com/Bring-Web3-LTD/TODO/issues/92