feat(gui): optional PostHog EU analytics (CHE-785) - #2
Conversation
Init posthog-js only when VITE_POSTHOG_KEY is set; capture hashchange pageviews without identify/PII. Co-authored-by: Cursor <cursoragent@cursor.com>
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
|
Warning Review limit reached
Next review available in: 20 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile P1 on PR #2: window.location.href leaked the full URL (OAuth ?code=, invitation tokens, emails in query/hash) to PostHog as $current_url. Report origin + pathname plus only a known hash route; drop the query string and any unknown hash contents.
Summary
VITE_POSTHOG_KEY/VITE_POSTHOG_HOST, defaulthttps://eu.i.posthog.com).identify/ no PII person profiles (person_profiles: identified_only).$pageviewon hashroute changes.Parent: CHE-782 · Implements: CHE-785
Test plan
bun install/ lockfile resolvesposthog-jsingui/VITE_POSTHOG_KEY, GUI loads and network has no PostHog requests$pageviewonlyposthog.identifyand no hardcoded project keys in sourceMade with Cursor
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Greptile Summary
This PR adds optional PostHog EU analytics to the GUI. The main changes are:
Confidence Score: 4/5
The analytics URL payload needs to be minimized before merging.
Analytics remains disabled when no key is configured. The dependency and client build surfaces are consistent with the GUI setup.
Enabled analytics can transmit sensitive query or hash values to PostHog.
What T-Rex did
Important Files Changed
Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "feat(gui): add optional PostHog EU analy..." | Re-trigger Greptile