With Survicate, it's possible to show your Website or in-product survey at certain moments of the customer journey.
Setting up your survey to pop up after a visitor triggers a specific event allows you to:
target users that added a specific product to their basket or used a coupon in the cart, so you can increase a conversion rate and sales;
show a survey on a specific section of your dashboard/app to inquire about your user's experience;
add a specific button in the navigation of your product to let the user decide when he wants to leave feedback.
This article will guide you step-by-step through the process of creating, adjusting, and launching a Website or in-product survey after an event on your webpage.
This feature is available on some of our plans. Reach out to us to learn more 👉.
Step 1. Install the Survicate Tracking code
To be able to trigger a Website or in-product survey after a JavaScript event, it's necessary to first install the Survicate tracking code on your website.
Please follow this guide to set it up.
Step 2. Create a website survey
1. Create a new survey and choose the Website or in-product surveys type from the menu. You can either set up a survey of your own, select a survey from our templates library, create a survey with AI, or import questions you prepared before:
2. Customize your widget style and colors in the Create tab, and make your survey entirely branded as your own! You can change the placement of the survey on the page and modify your survey messages.
Step 3. Set up the survey to trigger after an event
Option 1: Set up an event as a trigger
When an event is used as a Trigger, it fires the survey the moment the event occurs, if all other targeting conditions are met. Any event-related data (occurrence count, time of first and last occurrence) is stored locally in the visitor's browser.
This means the count doesn't reset when the user closes the page — only if they clear their cache/Local Storage or switch to a different browser.
1. Head over to the Target ➡️ Triggers tab.
Under the option, When would you like to show the survey? select When a user triggers an event.
Here, type your event name; you can also add event properties, as well as target your survey even more precisely by applying event targeting filters.
Here, you can specify the property name and value, time delay after event occurrence, number of event occurrences, time of the first occurrence, and time of the last occurrence of the event after which you'd like the survey to appear to a website visitor.
You can select among these operators when specifying the event's properties:
equals
doesn't equal
contains
doesn't contain
value exists
value doesn't exist
has any value
All of the operators are available in the NPM package starting from version 27.3.0. They're also available for all other installation methods.
❗️ If you apply more than one filter to the event, all of the applied conditions should be met for the survey to appear.
❗️For this option to trigger a survey after a specified event correctly, your developers should use the _sva.invokeEvent("eventName") method.
More information can be found in our documentation for developers.
Then, you can set up events in the Survicate panel in various Website surveys without your developers' help!
❗️Please note that event names, property names, and values are case-sensitive and should be written the same way as in your website.
Event properties should be string values.
If you choose to + Add another event to the targeting, the survey will appear if the visitor triggers one of the events:
2. You can additionally set up the audience to target your survey to a specific group of website visitors or trigger your survey only on certain pages to further control who should be able to see and answer your survey.
3. Once you are ready with your survey, start it from the Launch tab, and get ready to dive into your insights.
Option 2: Set up an event as an Audience filter
When an event is used as an Audience filter in the Users audience, Survicate relies on server-side tracking. Your development team passes user actions to Survicate as events, and Survicate stores that event history per identified user on the server — including occurrence count, time of first and last occurrence.
This means the event history follows the user across browsers and devices, not just their current session.
1. Head over to the Target ➡️ Audience tab, choose the Logged-in users audience and add an Events filter:
Here, type your event name; you can also add number of occurences and time of the first or last occurance:
❗️Please note that event names are case-sensitive and should be written the same way as in your website code.
If you choose to + Add another event to the targeting, the survey will appear if the visitor triggers one of the events:
❗ Keep in mind that Audience filters use a cache. When a user visits a page or app screen, we check which surveys they're eligible to take and we store the result for around 5 minutes. Only when the cache expires, the system re-checks the eligibility. At the moment, the cache cannot be manually adjusted or cleared, so the survey might appear with a delay.
Cache periods: 5 minutes when audience conditions are not satisfied, 5 minutes when they are satisfied, 5 minutes when a survey is not available to a user, and 90 seconds when a survey is available.
2. You can additionally trigger your survey only on certain pages to further control who should be able to see and answer your survey.
3. Once you are ready with your survey, start it from the Launch tab, and get ready to dive into your insights.
FAQ
When should I add events as a trigger and when as an audience filter?
Use events as a Trigger when you want the survey to fire immediately after a specific action, and the occurrence logic doesn't need to follow the user across different browsers or devices.
Use an event as an Audience filter when your targeting logic depends on a user's history across sessions, browsers, or devices.
Do NOT use it if you want the survey to be displayed immediately, as due to the cache it uses, it might be delayed.
📞 If you have any questions about triggering a survey after a JavaScript event, please reach out to us at support@survicate.com or strike up a chat conversation 👉








