-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ga and sentry tracking #754
Conversation
pageviews for time on page tracking - home page - email login page - otp login page - link analytics device page - link analytics clicks page - link analytics traffic page - create link modal page events for behaviour flow - enter home page - enter login page to fill email - enter login page to till otp - enter user page - click on file tab in create link modal - click on url tab in create link modal - click on 'create link' button - create link with file - create link with url - click and view device tab in drawer - click and view clicks tab in drawer - click and view traffic tab in drawer - successfully generate qr code for either svg or png - click on download links button - search queries feat: new endpoint for ga id - add new endpoint to provide ga id - remove ga id from webpack - initialise react ga during function call - remove react ga initialisation in index feat: track error cases track error cases using both sentry io and google analytics - unsuccessful otp verification - unsuccessful creation of link with url - unsuccessful creation of link with file - unsuccessful transfer of link ownership - unsuccessful generation of qr code - unable to download links - unable to fetch analytics data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues otherwise. Thanks for following through!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other things I noticed...
- change folder path from gaEvents to ga - rename GAevent to GAEvent - rename GApageView to GAPageView - add jsdoc - change GAEvent category title to lowercase - retain uppercasing for GAPageView to distinguish it from transition page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm otherwise
Problem
To understand user's behaviour, we need to track their actions for both success and error cases with Google Analytics (GA) and Sentry IO
This closes #700
Solution
Send pageview hit to GA on page change
Send event hit to GA on click or state change, for both success and error cases
Send event hit to Sentry on state change for error cases
Error cases will be send to both GA and Sentry for experimentation
New dependencies:
Features:
New endpoint to send GA id over to client for react-ga initialisation
GA pageviews:
GA events:
Sentry events: