Skip to content

Posthog: drop $initial_person_info from outgoing events#3968

Merged
fkwp merged 6 commits into
livekitfrom
fkwp/constrain_posthogevent
May 19, 2026
Merged

Posthog: drop $initial_person_info from outgoing events#3968
fkwp merged 6 commits into
livekitfrom
fkwp/constrain_posthogevent

Conversation

@fkwp
Copy link
Copy Markdown
Contributor

@fkwp fkwp commented May 15, 2026

The $initial_person_info super-property is auto-set by posthog-js. Drop it for increased privacy.

Copy link
Copy Markdown
Member

@BillCarsonFr BillCarsonFr left a comment

Choose a reason for hiding this comment

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

We could have make our life simpler by making sanitize an public utility method for testing.

By the way the sanitize_properties appears to be deprecated https://github.com/PostHog/posthog-js/blob/5b4eda14c99bed660bc31fd863dfcecaa7cde1e4/packages/types/src/posthog-config.ts#L1393

/** @deprecated - use `before_send` instead */

Do we have a real life capture showing it is still working?

@fkwp
Copy link
Copy Markdown
Contributor Author

fkwp commented May 18, 2026

We could have make our life simpler by making sanitize an public utility method for testing.

By the way the sanitize_properties appears to be deprecated https://github.com/PostHog/posthog-js/blob/5b4eda14c99bed660bc31fd863dfcecaa7cde1e4/packages/types/src/posthog-config.ts#L1393

/** @deprecated - use `before_send` instead */

Do we have a real life capture showing it is still working?

fair point. bumped posthog and refactoring is here: a08a561

still added an "end-to-end" posthog test to verify before_send does actually what we expect it to do.

Comment thread src/analytics/PosthogAnalytics.ts Outdated
Comment thread src/analytics/PosthogAnalytics.ts Outdated
rename: `applyPrivacyFilters`->`santizeSensitiveData`
Copy link
Copy Markdown
Contributor

@toger5 toger5 left a comment

Choose a reason for hiding this comment

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

Lets wait for the merge until we see a posthog event form this PR in the dashboard.

@fkwp fkwp merged commit f0db134 into livekit May 19, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR-Task Release note category. A PR that is hidden from release note.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants