In this article
A guide to collecting Survey Data from Apester
Note: This integration requires a custom event. Please contact your CSM and your Solution Architect to set up that custom event on your account.
Apester allows you to run multiple-choice surveys on your site. This declared first-party data can be useful in building cohorts, whether for demographics or purchase intent.
The setup requires work in Permutive and the Apester platform. It's important to ensure you have access to both before starting.
Setting up the custom events in Permutive
The event will have the following data points:
Name | Description | Examples |
Interaction Id | 5cb48901b712a358aeb0180b | |
Interaction Index | ||
Interaction Title | Title is taken from the first text element you put on the first slide | My great story |
Answer Id | 19174477-5b29-4044-b5bf-b683024aa420 | |
Answer Text | Text of the answer | definetly gonna buy the new Iphone |
Slide Id | The question id | 5cb48901b712a35acbb0180a |
Slide Title | Text of the question | What do you think of the new Iphone? |
External Id | The external id is taken from the external-id attribute on the embeded element. | 9864 |
Note: ApesterSurveyResponse events will also contain default properties such as the page URL and page title.
Setting up the JavaScript collector to forward answers to Permutive
Important: This code is provided "as is", without warranty of any kind, express or implied. In no event shall Permutive be liable for any claim, damages, updates, or other liability.
Please add the following code to your website.
window.addEventListener('message', (event) => {
if (event && event.data && event.data.type === 'picked_answer') {
var permutiveEventContent = {};
[
'interactionId',
'interactionIndex',
'interactionTitle',
'answerId',
'answerText',
'slideId',
'slideTitle',
'externalId',
].forEach(function(property) {
if (!event.data.data.hasOwnProperty(property) ||
!event.data.data[property]) {
return;
}
permutiveEventContent[property] = event.data.data[property] + '';
});
window.permutive.track('ApesterSurveyResponse', permutiveEventContent);
}
});
Building survey-based cohorts
Once set up, the ApesterSurveyResponse event will appear in the event drop-down list in your cohort builder.
A common way to use this data is to build a cohort of users who have answered a question in a certain way, for example, users whose gender is "female":
If you have any questions, please contact Technical Services by emailing technical-services@permutive.com.
Comments
0 comments
Article is closed for comments.