Pass the menu and read the page

SignupFolio

PostHog survey responses: 3 types to capture for activation

A PostHog survey event gives you three response shapes: a single choice index, an array of choice indices, and a numeric rating value. Each needs its own decode rule before you count activation by account.

Key takeaways

  • Single choice arrives as a number, stored as a 0-based index pointing at the option the user picked
  • Multiple choice arrives as an array of indices, which can be empty or hold a single element
  • Rating arrives as a number on a declared scale, such as 0-10, and should be read as ordinal rather than averaged
  • Question indices are 0-based, and if a survey runs iterations, PostHog appends the iteration to the event key
  • Verify the event key, indices, payload types, 0-based mapping, grouping identifier, and empty payloads against a live submission before publishing an activation number

What a PostHog survey event actually gives you

When a user submits a survey in PostHog, PostHog keys the response as $survey_responded/<survey_id>, with /<iteration> appended when current_iteration is above zero. That event carries the survey ID and the answer to each question. Your job is to know how the answer is shaped before you try to count it by account. The shape changes with the question type. If you count a rating like a choice, your activation number will be wrong on day one.

PostHog defines three response shapes you will see in activation surveys: a single choice index, an array of choice indices, and a numeric rating value. Each has its own encoding rules. This post walks through each one, shows how to read it for each new account, and lists the checks that keep your counts honest.

Two notes on scope. First, this is about counting activation survey answers for each new account in PostHog. Second, if a survey runs iterations, the event key changes, as covered below. Plan for that from the start if you expect to run waves.

Why the shape matters for activation counts

Activation answers usually tell you whether a new account hit the "aha" moment. You might ask one closed question in each wave: "Have you connected a data source?" with a single choice answer. Or you might ask a multi-select: "Which of these did you try in your first week?" with several choices. Or a 0-10 rating: "How confident are you in your setup?" For more on which question types suit onboarding, see onboarding survey question types.

Each of those answers lands in the same event family but with a different payload. A single choice answer is a number. A multi-select answer is an array of choice indices or, in the raw payload, an array of choice labels. A rating answer is a number on a scale. If you build one dashboard query that expects a single number and feed it an array, the query either fails or silently under-counts.

Growth leads care about this because activation reports usually slice by account. You need a rule for each question type, and you need to verify it against a real submission before you publish the number. For a related counting problem in another report, see counting rules for a signup path report in PostHog.

Here is the pattern that works across all three types: identify the question index, decode the answer, then group by account. The grouping step is the same for every type. The decode step is where teams go wrong.

The three response types and how to read them

Single choice

A single-choice question gives you one index, stored as a number. The index points at the option the user picked, counted from 0. PostHog documents this as a choice index, with 2 for the 3rd choice. The code comment in the same docs shows the same idea: 0: 2, // Single choice: select the 3rd choice (0-based index).

If you ask "Which plan are you on?" with options Free, Pro, Team, and a user picks Team, you get 2, not 3. Off-by-one is the classic bug here. Fix it once in your query and label it in your dashboard so the next person reading the chart does not "correct" it back.

For counting activation by account, single choice is the simplest type. You can group by account and count distinct respondents, then bucket by the index.

Multiple choice

A multiple-choice question gives you an array of indices. Each element points at an option, again 0-based. PostHog documents this as an array of choice indices, with [0, 2] for the 1st and 3rd choices, and the code comment reads 2: [0, 2] // Multiple choice: select the 1st and 3rd choices (0-based indices).

Two shapes matter here. First, the array can be empty if a user submits with nothing selected. Decide whether an empty array counts as "no answer" or as "answered, none applied." Second, the array can hold one element, which looks like a single choice but is not the same type. Treat arrays as arrays even when the length is 1.

When you count activation by account with a multi-select question, you usually want one of two views: "how many accounts selected this option at least once" or "how many times this option was picked across all accounts." Those are different numbers. Pick one, name it in the dashboard, and do not mix them in the same chart.

There is also a companion payload shape to know. For multiple-choice questions, PostHog says the response must be an array of values with the selected choices, for example $survey_response_multiple_choice_1: ["response_1", "response_2"]. Note that the key includes the question index. If you are reading the raw event rather than the decoded response, expect both forms to exist in your pipeline.

Rating

A rating question gives you a number on a scale. PostHog documents a rating value as a number, such as 9 on a 0-10 scale.

Ratings are the trickiest for activation counts because they are ordinal, not categorical. Do not average a rating across accounts unless you have a reason to treat the scale as interval. A median or a distribution usually says more. Also decide early how you handle the scale's bounds: is 0 a valid response, or a missing value you should drop?

If you track the same rating question across waves, you can watch it move. Vitally makes the case for tracking evolution: "But, for something like satisfaction, you may want to track that evolution over time, and using our surveys, you can!" Tracking across waves depends on a stable wave key.

Here is a side-by-side of how each type lands in the event:

Response typePayload shapeExample value from PostHog docsCounting note
Single choiceNumber2 (3rd choice, 0-based)At most one value for each question and account
Multiple choiceArray of indices or labels[0, 2] (1st and 3rd choices)Count presence by account, or total picks, but not both in one chart
RatingNumber on scale9 (on a 0-10 scale)Use distribution or median, not a naive average

How PostHog keys responses, and why the key matters

The event key is the line between "I can find my wave" and "I cannot." The docs state: "If the survey has a current_iteration greater than 0, append it to the key, for example $survey_responded/<survey_id>/<iteration>."

What this means in practice: your query should read survey ID plus iteration, not survey ID alone. If you only filter on survey ID, two waves blend together. Your activation count looks fine while the underlying trend is flat or falling.

Question indices are 0-based. The docs say keys are question indices, counted from 0: 0 for the first question, 1 for the second. If your survey has three questions, the keys are 0, 1, and 2. Renumbering a survey after launch will break any query keyed on the old indices. Freeze the order once the wave is live, or version your queries alongside the survey.

A practical rule: keep a small manifest next to your dashboard: survey ID, iteration, question index, question text, expected type, expected scale or option list. When a number looks odd, the manifest tells you whether the survey changed or the query did. For more on naming events so reports stay readable, see event naming mistakes in activation reports.

Walking through an activation wave

Take a new-account activation wave with three questions. Question 0 asks which integration the user connected, single choice. Question 1 asks which onboarding steps they completed, multi-select. Question 2 asks how confident they feel, rating on a 0-10 scale.

The event that arrives carries the survey ID, the current iteration, and one answer key for each question. Question 0 holds a single number. Question 1 holds an array of choice indices in the decoded form, while the raw event can instead hold choice labels. Name which form your query reads. Question 2 holds a number on the scale. Your account-level view needs three decode paths and one shared grouping step.

Now count it. For question 0, group by account and take the latest single value. For question 1, decide whether you are counting accounts that selected each option or total selections. For question 2, plot the distribution across accounts and track the median for each wave. If a user submits with nothing selected in question 1, the array is empty. Drop it or bucket it as a distinct outcome, but make the call once and write it down.

This is where a tool like HubSpot shows a different pattern. HubSpot starts from its own console: "To create a new survey, click Create survey in the upper right." In PostHog, the response shape follows PostHog's encoding rules, not a form-builder default. Knowing which system produced the event prevents you from applying the wrong decode rule to the wrong payload.

Illustrative example: one wave of 10 accounts

Suppose 10 new accounts submit the wave described above. Question 0 is single choice, so each account contributes at most one index. Question 1 is multi-select, so an account that picked two steps counts toward both. Question 2 is a 0-10 rating, so you plot the 10 values as a distribution and report the median, not the mean. An account that submits with nothing selected in question 1 falls into the edge case you decided on before publishing.

Checks before you publish an activation number

Run these checks on a live submission before the number goes into a report.

Verify the event key. Confirm the event name includes the survey ID and, if you are on an iteration, the iteration suffix. A missing suffix means waves are blending.

Verify the question indices. Open the raw event and confirm the answer keys match your manifest: 0 for the first question, 1 for the second, and so on. A mismatch means the survey order changed after you wrote the query.

Verify the type. Single choice should be a number. Multi-select should be an array. Rating should be a number on the declared scale. A type mismatch means you are reading the wrong payload or the survey changed type.

Verify the 0-based mapping. Take one known submission, look at the option list, and confirm the index maps to the option you expect. This catches the off-by-one before it reaches the dashboard.

Verify the grouping. Confirm that the account identifier on the event matches the account identifier you join on. A mismatch silently drops respondents.

Verify empty and edge payloads. Submit with nothing selected where your survey allows it. Confirm your query handles the empty array the way you decided.

Ask your PostHog admin or your data owner which property you should group on, and pin that answer in your manifest.

Common mistakes when counting survey answers by account

Counting the index as the value. A 2 means the third option, not the second and not a quantity. Always join the index to the option list before you label the chart.

Averaging a rating. A 0-10 rating is ordinal. An average can move because a few users picked 0, not because confidence changed. Look at the distribution and the median.

Mixing presence counts and pick counts. For multi-select, "accounts that picked this option" and "total picks of this option" are different numbers. They belong in different charts.

Ignoring iterations. Two waves under one survey ID will blend. Use the iteration suffix in the key when current_iteration is above zero.

Freezing the query while the survey moves. Reordering or adding a question after launch breaks index-based keys. Version your queries with the survey.

Treating an empty array as a missing answer without deciding. An empty multi-select array is a real state. Decide how it counts once, then hold that line.

Joining on the wrong account property. If the event's account property differs from your warehouse's account property, respondents drop out of the group-by. Check one submission end to end.

Next step today

Submit one test response to your activation survey today, open the raw event, and check the key, question indices and payload types against your manifest. One good submission will surface basic mapping errors, so before publishing, also test the empty-array, single-element and iteration cases as separate submissions.

Related guides: NPS survey timing: 4 tools' trigger and display rules · PostHog user paths: 4 event types and a 30-minute gap.

FAQ

Does a single-choice answer of 0 mean no answer? No. 0 is a valid 0-based index and points at the first option. If your survey allows skipping, keep a separate signal for "skipped" in your manifest, and confirm how a skip appears on a live submission.

How do I keep two waves of the same survey apart? Use the iteration suffix in the event key. PostHog appends it when current_iteration is above zero, for example $survey_responded/&lt;survey_id&gt;/&lt;iteration&gt;. Filter on the full key, not the survey ID alone.

Should I store the index or the label? Store both. Single-choice payloads carry the index, and multi-select payloads may carry labels instead; the label is what a reader understands. Keep a manifest that maps index to label for each wave, and resolve the label at query time so a relabeled option does not rewrite history.

What if a multi-select question comes back with one element? It is still an array. Keep your decode path in array mode. Flattening single-element arrays to a scalar will break the next submission that has two or more selections.

Does a rating of 9 mean the user selected the ninth option? No. It is a value on the scale the survey declares, for example 0-10. Read it against that scale, and keep the scale fixed across waves if you want the numbers to be comparable.

Sources and check date

Related posts

More posts