Integrating in Affect Lab

Learn what integrations Affect Lab. 

Affect Lab users have the flexibility to link their survey platforms with Affect Lab, thus allowing respondents to answer survey questions on those platforms while taking the corresponding eye tracking and/or facial coding tests on Affect Lab.

For e.g., users can leverage the functionality described in this article to set up a flow where respondents answer pre-survey or screening questions in a system like FocusVision, get redirected to Affect Lab to take the eye-tracking and/or facial coding test, and then be re-directed again back to FocusVision to answer post-survey questions. 

Understanding common integration scenarios
1. Redirecting from your survey platform to Affect Lab 

Users can append unique URL variables to the re-direction link in their survey systems. These variables will then be passed onto and stored within Affect Lab when a respondent completes the pre-survey / screening questionnaire. 

For e.g., the following URL - 

https://client.affectlab.io/applicant/token/1f55c75566674cbf9e045530e91524 4a?list=101&amp (https://client.affectlab.io/applicant/token/1f55c75566674cbf9e045530e91524 4a?list=101&amp);psid=${VARpsid.val}&basic=${VARbasic.val} 

page1image64595712

contains variables like 'psid' and 'basic' which are passed onto Affect Lab in the form of unique values for each respondent. These variables are automatically stored in Affect Lab's database and can be mapped against unique Affect Lab IDs that are created for each respondent. 

Redirecting from Affect Lab to your survey platform 

page2image64714352

Users can configure re-directs in the Affect Lab campaign settings to re-direct respondents who complete eye tracking and/or facial coding tests to the survey platform. They can also add any static variables that need to be passed on from Affect Lab to the survey platform. 

Redirecting from your survey platform to Affect Lab and back 

page2image64713312

This is one of the most common integration scenarios and can be accomplished through the steps mentioned in the first two scenarios, i.e. 

  1. Users copy the campaign URL and paste it into the re-direction settings of the survey platform. They append any variables that need to be passed to the Affect Lab campaign URL. 
  2. Users configure the re-directs in Affect Lab to send respondents back to the survey system post completion of eye-tracking and/or facial coding tests. 

Steps to link Affect Lab with your survey platform 

Setup a campaign in Affect Lab by uploading your stimuli, and generating the test URL for the study. Once all these steps have been completed, launch the campaign to make the campaign URL live. page3image65010096

Copy the URL for the campaign page3image65005728

Feed the URL into the re-direction settings of the survey. For e.g., users can take the campaign URL from Affect Lab and insert it in the XML script of the survey to configure the re-direction to Affect Lab. page3image65004688

Once done, test the flow out to confirm it's working as intended.