Skip to main content
Answered

Callback on survey complete

  • 5 March 2024
  • 1 reply
  • 159 views

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

View original
Did this topic help you find an answer to your question?

1 reply

bernice
Intercom Team
Forum|alt.badge.img+5
  • Intercom Team
  • 230 replies
  • Answer
  • March 11, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings