* Done. I've added PostHog analytics tracking to `NewDesignScope.tsx` that fires a `ui_new_accessed` event once per session when users visit any `/workspaces` route.
The implementation:
- Fires the event only once per session (using a `useRef` that resets on page refresh)
- Respects the user's analytics opt-in/opt-out preferences (handled by PostHog SDK)
- Located in `NewDesignScope` which wraps all new UI routes
* Use sessionStorage for true once-per-session tracking
The useRef approach only prevented duplicates within a single mount
lifecycle. If the user navigated away from /workspaces and back, the
component would remount and the ref would reset, firing the event again.
sessionStorage persists for the entire browser tab lifetime, ensuring
the event fires exactly once per session.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Revert to useRef for tracking
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>