We have 2 surveys:
- one is fired via the JavaScript code `Intercom('startSurvey', 123456789);`... this is a stand-alone page where we inserted the code from intercom in the `<head>`
- other is an SPA where we use the `react-use-intercom` package and trigger `boot()` on a specific page using the `useIntercom` hook
Our survey show on these pages as expected... BUT, if the user doesn't fill the survey there and goes to some other pages, the survey "follows the user" (i.e. the user continues to see the survey)... these other pages all have intercom code in the header for some other functionality like posts, banners etc.
Can we restrict the survey to be triggered only on the page that is defined inside the survey setting?
- we use the following settings to configure a URL inside intercom:
- Trigger your survey automatically with rules > Current page URL contains "OUR_URL"
Regards
AI