Skip to content

BDMS-562: PostHog well detail routing and command palette search analytics#273

Merged
jeremyzilar merged 2 commits intostagingfrom
BDMS-562
Apr 30, 2026
Merged

BDMS-562: PostHog well detail routing and command palette search analytics#273
jeremyzilar merged 2 commits intostagingfrom
BDMS-562

Conversation

@jeremyzilar
Copy link
Copy Markdown
Contributor

@jeremyzilar jeremyzilar commented Apr 30, 2026

This branch adds additional product analytics for PostHog breakdowns

PostHog pageviews (well detail)

  • Parse /ocotillo/well/show/:id and /amp/wells/show/:id and attach well_id, page_template, and well_detail_area to each $pageview so dashboards can filter or group by well alongside existing feature_used (well_detail).

Command palette search

  • Emit global_search when an API search (default mode) or docs search (!docs) completes, with query, result_count, has_results, and had_error for reporting.

Session replay

  • Use session_recording.maskInputFn so password fields stay masked while the command palette search input is unmasked via data-posthog-unmask-search.

Parse Ocotillo and AMP well show URLs so $pageview includes well_id, page_template, and well_detail_area for breakdowns. Extend feature_used on Ocotillo WellShow with well_detail_area.
…n replay.

Emit global_search after API and docs searches with query, result_count, has_results, and had_error. Mask other inputs in replay but show the palette field via data-posthog-unmask-search and maskInputFn.
@github-actions
Copy link
Copy Markdown

Preview Deployment

Preview URL: https://preview-bdms-562-auejgdbofq-uc.a.run.app

Note: This preview uses the staging API endpoints.

Copy link
Copy Markdown
Contributor

@TylerAdamMartinez TylerAdamMartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jeremyzilar jeremyzilar merged commit 30572f0 into staging Apr 30, 2026
3 of 4 checks passed
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.

2 participants