-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
chore(github-invite): more FE analytics #56507
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
chore(github-invite): more FE analytics #56507
Conversation
cathteng
commented
Sep 19, 2023
- Track the number of members being shown in the banner
- Track the number of people being invited through the modal
@@ -96,6 +96,7 @@ export function InviteBanner({ | |||
if (isEligibleForBanner && showBanner) { | |||
trackAnalytics('github_invite_banner.viewed', { | |||
organization, | |||
members_shown: missingMembers.users.slice(0, 5).length, |
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.
Why is this indexed from 0 to 5?
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.
we only show up to 5 members on the banner
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.
Is there some constant we use to determine the number of people shown we can use instead of hardcoding the 5
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.
probably. i use slice elsewhere in this file too