PostHog / PostHog/posthog

Surveys partial responses requires sending duplicated data in the event

Open
#32,076 0 comments 0 reactions 1 assignee View on GitHub

@lucasheriques is already working on this.

Since May 8, 2025.

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

Description

Bug Description

In our current implementation of partial responses, on each survey sent events, we're always sending duplicated data.

On the first event, we send:

$survey_response_<question-id-1>: 10

Second:

$survey_response_<question-id-1>: 10
$survey_response_<question-id-1>: 'Hello'

And so on.

Maybe there's a way for us to handle merging the events together on the server side. This would allow us to send events with less payload, and then we can join the responses together by the $survey_submission_id.

Debug info
- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables or https://eu.posthog.com/settings/project-details#variables]
- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.