How to pass through additional data at the end of your survey

Voxpopme Help Team UK -

The help article will walk you through how to capture additional data at the end of the survey that can be merged onto video responses captured within the survey. Please note, this will only work for respondents who successfully complete the survey. 

  1. Set up your survey. Ensure that a unique identifier for each respondent is passed through to the Voxpopme portal within the video capture embed code, like Respondent ID or User ID. If your survey has more than one video response, you will need to ensure the unique identifier is included as additional data within each embed code. 
  2. At the end of the survey, select to add in a snippet of Javascript and then copy the Javascript below:
    var vpm_widget_config =
        project_id: "project-identifier",
        capture_type: "upload-additional-data",
        additional_data: {
            "first_name": "[first_name]",
            "last_name": "[last_name]",
            "Age": "[Age]",
            "Gender": "[Gender]"
    document.addEventListener("additional-data-upload", function(){
        window.vpmAdditionalDataUploader(vpm_widget_config, "user-uid-here");
    !function(a,b,c,d){function e(){var a=b.createElement(c);a.type="text/javascript",a.async=!0,a.src=d;
        var e=b.getElementsByTagName(c)[0];e.parentNode.insertBefore(a,e)
  3. Replace "project-identifier" with the identifier for your project. This is available on the Project Summary page. Head to your project, and use the Responses dropdown to select Summary. 
  4. Add in all the additional data you would like passed through to the portal. This should be added within the additional data section following the same format. Each new piece of additional data will need to be on a new line, and comma separated. The square brackets will need to be replaced with how you pass through additional data within your survey platform, for example [age] or {{age}} .
  5. Next, replace "user-uid-here", highlighted in green in the code above, with the unique identifier merge code you are capturing and passing through to the portal (any additional data captured in the survey will attach itself to any video response in the project with this unique respondent identifier).
  6. Test through the survey to ensure the additional data is passing through successfully. 
Have more questions? Submit a request


Article is closed for comments.