8000 Feature Request: Include feature flag data with Segment events · Issue #31716 · PostHog/posthog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature Request: Include feature flag data with Segment events #31716

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ordehi opened this issue Apr 29, 2025 · 0 comments
Open

Feature Request: Include feature flag data with Segment events #31716

ordehi opened this issue Apr 29, 2025 · 0 comments
Labels
enhancement New feature or request feature/feature-flags Feature Tag: Feature flags team/feature-flags

Comments

@ordehi
Copy link
Contributor
ordehi commented Apr 29, 2025

Feature request

Is your feature request related to a problem?

Please describe.

When using Segment on the frontend, many frontend and person properties are included with events, however, feature flag data is not included, prompting users to have to manually send that data with something like:

analytics.track("user signed up", {
    plan: "Pro Annual",
    accountType: "Premium",
    $feature/feature-flag-key: 'variant-key' // Add your feature flag info here
});

Describe the solution you'd like

Include feature flag data with Segment events when run on the frontend.

Describe alternatives you've considered

Manually sending the feature flag variant which requires one of the following:

  • Running segment alongside the Web SDK (some users may not want to do this)
  • Calling the /decide endpoint to get the flag data (additional API calls)

Additional context

From: https://posthoghelp.zendesk.com/agent/tickets/29543

Debug info

Kind: support

Target area: feature_flags

Report event: http://go/ticketByUUID/87e2d44f-684f-43cf-add6-6c7b4d0fd5f9

Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/019667f2-bedc-78c5-a97d-772b7f4c034f?t=124

Exceptions: https://us.posthog.com/project/2/error_tracking?filterGroup=%7B%22type%22%3A%22AND%22%2C%22values%22%3A%5B%7B%22type%22%3A%22AND%22%2C%22values%22%3A%5B%7B%22key%22%3A%22%24session_id%22%2C%22value%22%3A%5B%22019667f2-bedc-78c5-a97d-772b7f4c034f%22%5D%2C%22operator%22%3A%22exact%22%2C%22type%22%3A%22event%22%7D%5D%7D%5D%7D

Location: https://us.posthog.com/project/117943

Sentry: http://go/sentryUS/117943

Persons-on-events mode for project: person_id_override_properties_on_events
@ordehi ordehi added enhancement New feature or request feature/feature-flags Feature Tag: Feature flags team/feature-flags labels Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature/feature-flags Feature Tag: Feature flags team/feature-flags
Projects
None yet
Development

No branches or pull requests

1 participant
0