Skip to content

Survey Triggers

Learn how to trigger in-product surveys on specific URLs or user actions.

Survey Triggers

No code triggers

Surveys can be trigged on specific URLs or clicking an element on the page.

Page Events

  1. Page Load: Show the survey when the page loads. You can choose to show it immediately or after a delay of a few seconds.
  2. Page Scroll: Show the survey when the user scrolls more than 50% of the page.
  3. Page Exit: Show the survey when the user tries to exit the page.

Click Events

Surveys can be triggered when users click on a specific element on the web page. You can select the element via:

  1. CSS Selector: Select elements based on CSS class or id. If multiple elements have the same class, triggers will be added to all of them.
  2. Inner Text: Select element(s) based on inner text. The selected text should be as is, including spaces. If multiple elements have the same text, triggers will be added to all of them.

Code triggers

You can trigger surveys programmatically using the FeedbackSpark SDK. This is useful when you want to show the survey based on user actions or events in your application. A survey can be triggered using a unique survey code. The survey code is generated after the survey is created.

spark('showSurvey', SURVEY_CODE)