Surveys partial responses requires sending duplicated data in the event
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.