Skip to content

Telemetry Improvements#1201

Merged
kevinherdez merged 1 commit into
NWACus:mainfrom
kevinherdez:kevinherdez/telemetryImprovements
Jun 18, 2026
Merged

Telemetry Improvements#1201
kevinherdez merged 1 commit into
NWACus:mainfrom
kevinherdez:kevinherdez/telemetryImprovements

Conversation

@kevinherdez

@kevinherdez kevinherdez commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Added 3 new telemetry events

  • submitObsButtonPressed

eventName: submitObsButtonPressed
properties: presentedFrom: <screen name>

  • shareButtonPressed

eventName: shareButtonPressed
properties: presentedFrom: <screen name>

  • CenterSwitched

eventName: centerSwitch
Properties:
switchedFrom: <CenterId>
switchedTo: <CenterId>
eventOrigin: Map | CenterSelectorView

The center switch event is collected using a new captureCenterSwitch in useAnalytics.ts to keep the data as clean as possible. SubmitObsButtonPressed and ShareButtonPressed have a metadata property called presentedFrom. This helps us determined the "flow" that the user ultimately reached the button from. These flows being from the forecast screen and the ObservationsTab. The values passed to PostHog are 'forecast' and 'bottomTabs' respectfully.

@kevinherdez kevinherdez added this pull request to the merge queue Jun 18, 2026
Merged via the queue into NWACus:main with commit ffe21c5 Jun 18, 2026
5 checks passed
@kevinherdez kevinherdez deleted the kevinherdez/telemetryImprovements branch June 18, 2026 18:16
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