Skip to content

Move Plunk tracking to frontend and add PostHog user identification#346

Merged
mayanayza merged 1 commit intodevfrom
fix/ph-splunk
Dec 20, 2025
Merged

Move Plunk tracking to frontend and add PostHog user identification#346
mayanayza merged 1 commit intodevfrom
fix/ph-splunk

Conversation

@mayanayza
Copy link
Collaborator

Analytics improvements:

  • Add PostHog identify() on app load to link events to user profiles
  • Add resetIdentity() on logout to unlink future events
  • Disable all analytics (PostHog + Plunk) for Demo plan organizations to prevent test data from polluting production analytics

Plunk subscription tracking:

  • Move registration tracking from backend to frontend using public API key
  • Frontend calls Plunk directly after password registration
  • OIDC registration stores preference in sessionStorage, tracks after redirect
  • Remove field from RegisterRequest API

Backend cleanup:

  • Remove subscribed from RegisterRequest and OidcAuthorizeParams
  • Remove subscribed from auth event metadata
  • Simplify email subscriber (no longer handles registration events)
  • Update track_event signature to remove subscribed parameter

  Analytics improvements:
  - Add PostHog identify() on app load to link events to user profiles
  - Add resetIdentity() on logout to unlink future events
  - Disable all analytics (PostHog + Plunk) for Demo plan organizations
    to prevent test data from polluting production analytics

  Plunk subscription tracking:
  - Move registration tracking from backend to frontend using public API key
  - Frontend calls Plunk directly after password registration
  - OIDC registration stores preference in sessionStorage, tracks after redirect
  - Remove  field from RegisterRequest API

  Backend cleanup:
  - Remove subscribed from RegisterRequest and OidcAuthorizeParams
  - Remove subscribed from auth event metadata
  - Simplify email subscriber (no longer handles registration events)
  - Update track_event signature to remove subscribed parameter
@mayanayza mayanayza merged commit 2fe2623 into dev Dec 20, 2025
3 checks passed
@mayanayza mayanayza deleted the fix/ph-splunk branch December 21, 2025 22:03
mayanayza added a commit that referenced this pull request Feb 24, 2026
Move Plunk tracking to frontend and add PostHog user identification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant