Skip to content
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: Add Web Analytics to Onboarding + Quick Start #29273

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rafaeelaudibert
Copy link
Member

Problem

Web Analytics now requires app_urls to be properly set-up if we want our customers to make the most out of it.

Changes

Changes are 2-fold:

On the /products onboarding, display the app_urls UI inline
image

On the Quick Start guide on the sidebar
image

Does this work well for both Cloud and self-hosted?

Yep

How did you test this code?

Manually

@rafaeelaudibert rafaeelaudibert requested review from joshsny and a team February 26, 2025 21:12
@rafaeelaudibert rafaeelaudibert changed the base branch from master to revert-29250-revert-29083-use-app-urls-for-web-analytics February 26, 2025 21:21
Copy link
Contributor

github-actions bot commented Feb 26, 2025

Size Change: +843 B (+0.01%)

Total Size: 9.73 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 9.73 MB +843 B (+0.01%)

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

6 snapshot changes in total. 0 added, 6 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR adds Web Analytics to the onboarding process and Quick Start guide, focusing on helping users properly set up authorized domains (app_urls) which are essential for Web Analytics functionality.

  • Added OnboardingWebAnalyticsAuthorizedDomainsStep component that guides users through domain setup during onboarding
  • Created new WebAnalyticsFilters component with domain filtering capabilities, replacing inline filters in the dashboard
  • Added Web Analytics section to the activation sidebar with "Add an authorized domain" and "Set up web vitals" tasks
  • Renamed TeamToolbarURLs to TeamAuthorizedURLs with updated text explaining URLs are used for both Web Analytics and Web Experiments
  • Added health check warning in Web Analytics when no authorized domains are configured

42 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

@rafaeelaudibert rafaeelaudibert force-pushed the revert-29250-revert-29083-use-app-urls-for-web-analytics branch from 2858b6e to c5c19a1 Compare February 27, 2025 12:57
Base automatically changed from revert-29250-revert-29083-use-app-urls-for-web-analytics to master February 27, 2025 14:40
@joshsny
Copy link
Contributor

joshsny commented Feb 27, 2025

@rafaeelaudibert looks like this is still including a lot of changes from a previous PR

@rafaeelaudibert
Copy link
Member Author

@rafaeelaudibert looks like this is still including a lot of changes from a previous PR

@joshsny Yeah, we did a rebase, I'm fixing this, will ping you in 30min once this is ready for you :)

Now that adding a domain to the authorized URLs list is very important to use Web Analytics properly, let's add it to the brand new Quick Start guide as well
@rafaeelaudibert rafaeelaudibert force-pushed the add-domain-setup-to-web-analytics-onboarding branch from 0a1537a to 35334af Compare February 27, 2025 17:56
@rafaeelaudibert
Copy link
Member Author

@joshsny Rebased now, should be good to review!

Copy link
Contributor

@joshsny joshsny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for adding, left a couple small comments

return
}

setAllOnboardingSteps(allSteps)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to do this useEffect? Can't see it being used elsewhere, I think currently just the allSteps state variable is used in this component

}

if (payload?.app_urls && payload?.app_urls.length > 0) {
activationLogic.findMounted()?.actions?.markTaskAsCompleted(ActivationTask.AddAuthorizedDomain)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This didn't go anywhere for me, should I have a feature flag on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants