Skip to content

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

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

cathteng
Copy link
Member

  • Track the number of members being shown in the banner
  • Track the number of people being invited through the modal

@cathteng cathteng requested a review from a team as a code owner September 19, 2023 21:16
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Sep 19, 2023
@@ -96,6 +96,7 @@ export function InviteBanner({
if (isEligibleForBanner && showBanner) {
trackAnalytics('github_invite_banner.viewed', {
organization,
members_shown: missingMembers.users.slice(0, 5).length,
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Contributor

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

Copy link
Member Author

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

@cathteng cathteng merged commit c2959db into master Sep 20, 2023
@cathteng cathteng deleted the cathy/github-growth/track-members-shown-in-banner branch September 20, 2023 15:13
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2023
@cathteng cathteng changed the title chore(github-growth): more FE analytics chore(github-invite): more FE analytics Dec 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants