Docs
Guides

Collect survey answers

Ask a cancellation or product question, receive the answer in your code.

In Screens select New screen and choose the Cancel Survey template. It asks for a reason with the field reason and options like price, missing_feature and not_using. Edit the wording. To build your own add a Single choice and set Field ID and each Answer ID.

Publish it and point a placement such as cancel_survey at it.

Open it when the visitor starts cancelling:

const result = await UIKit.presentPaywall({
  paywall: { placement: 'cancel_survey' },
  onAnswer: ({ fieldId, value }) => console.log(fieldId, value),
});
if (result.answers?.reason) saveReason(result.answers.reason);

The result carries answers when at least one question was answered. A Run your code button gives { outcome: 'action', actionId, answers } instead.

Miniwall counts each chosen option. Text typed into a Text field is never sent to Miniwall: you receive it only in answers.

The Answers card of the Analytics page for the field reason of Cancel survey: price 42.5 percent, missing_feature 26, not_using 21 and other 10.5, with 640 answered.The Answers card of the Analytics page for the field reason of Cancel survey: price 42.5 percent, missing_feature 26, not_using 21 and other 10.5, with 640 answered.
Each chosen option is counted under Answers in Analytics. Typed text never is.