PostHog / PostHog/posthog

Surveys - Target based off actions

Open
#30,737 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/surveys
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
7h 27m
Merged PRs (30d)
222

Description

Feature request

Is your feature request related to a problem?

You can target off of events, but you can't sub-filter those events. Actions could come in useful here, but you cannot use actions when targeting in a survey.

Describe the solution you'd like

I'd like to target users based off actions they've done.

Describe alternatives you've considered

  • Building a cohort - doesn't work as you can't target cohorts made with events.
  • Filtering the event by an event property - not supported right now.
  • Creating a dedicated event for this sub-feature we want to collect feedback on.

Additional context

Debug info
Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/0195fb04-e3e2-7b05-8c47-7b30484b42da?t=3098
Admin: http://go/adminOrgEU/018ab7c3-7a4b-0000-491c-f1ebbc197f1d (project ID 12677)
Sentry: http://go/sentryEU/12677

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the survey targeting flow and the existing event-targeting behavior, then compare it with action filtering and event-property filtering. Done should mean a survey can target users based on actions they have performed, with the intended filtering behavior covered by tests.

Written by the indexing model from the issue text.

Assessment

Domain
analytics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.