Skip to content

Setting up ExitPoll questions

For more information on the types of questions we support for the ExitPoll feature please see our dashboard documentation.

Overview

ExitPoll surveys allows you to directly ask questions to your users. This only requires a few lines of code and some options on your Cognitive3D dashboard. This page will walk you through the process of enabling and configuring an ExitPoll in your application.

The types of questions are:

  • Boolean: true / false
  • Happy / sad (boolean internally)
  • Thumbs up / Thumbs down (boolean internally)
  • Multiple choice with 2 to 4 choices
  • Scale: with a numeric range like 1 to 10
  • Voice: the user records audio
public enum QuestionType: String, Codable {
    case boolean = "BOOLEAN"
    case happySad = "HAPPYSAD"
    case thumbs = "THUMBS"
    case multiple = "MULTIPLE"
    case scale = "SCALE"
    case voice = "VOICE"
}

For recording audio, an entitlement with a description needs to be added to the application info.plist.

<key>NSMicrophoneUsageDescription</key>
<string>We need access to the microphone for audio recording.</string>

Detailed information on implementing ExitPolls in your application

Exit poll survey - view model

Exit poll questions SwiftUI views

intercom If you have a question or any feedback about our documentation please use the Intercom button (purple circle) in the lower right corner of any web page or join our Discord.