Studying your customers and taking a calculated guess on what they like is one thing. Hearing the same straight from the customers is another thing altogether. That’s why surveys are the best. Nothing speaks like a survey for it’s the tool that carries the affidavit of the customer’s experience through your website. You can use the Surveys feature in VWO to listen to your customers. When you have the right questions to source the extract of your customers’ experience, you are all set to go. Just frame your questions, set an ideal location, use a default theme or custom-create one for the survey to be displayed, and choose a language. Your survey is ready!
But that’s not all. You can even add custom events like pushing your VWO survey data to third-party analytics tools and streamline your data analysis.
You can add custom functionality using the following available APIs in VWO Surveys:
VWO Survey Shown API
This is the API through which you will be able to add custom functionality when the survey is shown to the visitor.
The following is a sample data object that will be included in the callback function:
The above example features the following details in the callback function using which you can obtain the survey data correspondingly:
- accountId (VWO Account ID)
- surveyId (The unique survey campaign ID)
- uuid (The unique ID given to a visitor that arrives at your website where VWO SmartCode is enabled).
VWO Survey Answer Submitted API
This is the API through which you will be able to add custom functionality when a visitor submits a survey answer.
The data in the callback function will include the details of the visitors that have attended the survey along with the details of the survey question and the corresponding response as provided by the visitors.
For instance, if you wish to push the data to GA as soon as the visitor submits the answer to a survey question, you can use the following code snippet:
The following are sample data objects that will be included in the callback function:
For Multi-line Answers
Assuming that the visitor is asked a question that requires them to provide an answer in a few words, the data object will be as follows.
For Multiple Choice Questions
If it is a multiple-choice question, the data object will be as follows.
For Skipped Questions
For any optional question skipped by a visitor, the data object will have an additional parameter - “skipped”, set to ‘true’ as shown below.
VWO Survey completed API
Through this API you can add custom functionality when the visitor completes the survey.
The data in the callback function will include accountId, surveyId and uuid, using which you can track when a survey is completed.
Thus, you can customize VWO Survey to make it your own and gain the actionable insights that you need from customer responses to make better business decisions.