Skip to content

Conversation

@xgraceyan
Copy link
Contributor

@xgraceyan xgraceyan commented Jun 2, 2025

Summary

Added PostHog tracking for new auth actions. These include:

  • SIGN_IN
  • SIGN_IN_FAIL
  • SIGN_OUT
  • LOAD_SCHEDULE
  • LOAD_SCHEDULE_FAIL
  • LOAD_SCHEDULE_LEGACY
  • LOAD_SCHEDULE_LEGACY_FAIL
  • SAVE_SCHEDULE
  • SAVE_SCHEDULE_FAIL

Also, users on Google Auth will get identified across different actions, so we can track what a specific user does in PostHog.

Additionally, our previous implementation for PostHog probably was focused on fully replicating Google Analytics 1:1. These included reducing additional metadata into generic labels such as 'content': 0/1 and then adding comments on what those actually mean in analytics.ts. This is not preferred, especially when PostHog can support custom metadata in each action log. This PR aims to improve that, although some parts of the implementation are still janky (Posthog has no typescript sdk).

Test Plan

Go through each of the actions in the summary. Perform the action, and then verify that the correct data shows up in the PostHog activity log (It helps to filter URL to localhost only). This may take anywhere from a few seconds to a few minutes for each to go through so this might be a tedious process

Issues

Closes #1276

@github-actions github-actions bot added the Stale label Jul 3, 2025
@alexespejo
Copy link
Collaborator

Would rework after #1308

@github-actions github-actions bot removed the Stale label Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PostHog with Auth

4 participants