I need to trigger an action within my application when the user either completes the survey or cancels it. Similar to how we currently initiate the survey (Intercom('startSurvey', XXXXX);), I require a comparable mechanism to execute a function upon survey completion or closure.
Thank you.
Best answer by bernice
Hey @User279 👋 While there is no JS method for when a Survey is completed, you can use Webhooks to identify when a user has completed a Survey and then trigger an action. To achieve this, you’ll be using the content_stat.survey topic 🚀 You can then track the following Survey events: - receipt (Survey shown) - goal_success - answer - click - completion - dismissal
Hey @User279 👋 While there is no JS method for when a Survey is completed, you can use Webhooks to identify when a user has completed a Survey and then trigger an action. To achieve this, you’ll be using the content_stat.survey topic 🚀 You can then track the following Survey events: - receipt (Survey shown) - goal_success - answer - click - completion - dismissal