Survey completed

Survey Completed

Overview

The onSurveyCompleted API triggers custom functionality when a visitor completes a survey. It allows you to capture survey completion data and perform actions such as sending the data to a data warehouse or triggering specific business logic.

Signature

window.Wingify.push(['onSurveyCompleted', function (data) {
    // Add your custom code here
}]);

Callback Data

Type: Object containing below information

ParameterData TypeRequiredDescription
accountIdnumberYesThe Wingify account ID.
surveyIdnumberYesThe survey campaign ID of the completed survey.
uuidstringYesThe unique identifier for the visitor.

Example

window.Wingify = window.Wingify || [];
window.Wingify.push(['onSurveyCompleted', function (data) {
    // Add your custom code here
}]);

Sample Data Object

{
    "accountId": 1000047,
    "surveyId": 296,
    "uuid": "D4F232BA23BBA4EE9D1C1ACB47DB8BA9D"
}

Use-cases

  • Customer Data Integration: Use this callback to tag survey responses with customer data and push them to your Customer Data Platform (CDP) or data warehouse for deeper analysis.
  • Behavior Analysis: Send survey response data to analytics tools like Google Analytics to study user behavior, including entry points, time spent, and average page visits.
  • CRM Integration: For sales teams, send survey insights into your CRM system to enhance their approach based on customer feedback (e.g., identifying competitors being evaluated).