This document is for you if you are:
The general method will also work for other DMPs.
Please do NOT simply retarget users based on their survey responses:
For these reasons, we strongly recommend that you use survey response data to build ‘lookalike’ audiences in your DMP and only retarget these wider audiences excluding the original respondents.
Permutive has created a tracking method called “BrandMetricsSurveyResponse”, the subject of a support note on their website.
This can be used to build a cohort of respondents keyed on the BM measurement ID, which you can subdivide based on their responses to particular questions.
N.B. As of 2024/07/11 The following javascript supersedes that in the support note as it is designed to better handle multi-question surveys.
// Create the BM command array if it doesn’t exist already
window.top._brandmetrics = window._brandmetrics || [];
// Add the event handler to send answer data to Permutive
window.top._brandmetrics.push({
cmd: '_addeventlistener',
val: {
event: 'surveyanswered',
handler: function(ev) {
try {
// Only carry on if Permutive installed
if (window.top.permutive && window.top.permutive.track) {
// Only look at the last-added response
questionAnswers = ev.answers.split(';').slice(-1)[0];
questionAnswers = questionAnswers.split('-');
var question = null;
var answers = null;
// Get question number
if (questionAnswers[0]) {
question = questionAnswers[0];
}
// Get answer numbers, separated by commas
if (questionAnswers[1]) {
answers = questionAnswers[1].split(',');
}
// Call the Permutive method to update the cohort
window.top.permutive.track('BrandMetricsSurveyResponse', {
mid: ev.mid,
question: question,
answers: answers,
});
}
} catch (e) {
console.error('brandmetrics: Error sending data to
Permutive ', e);
}
},
},
});
The connector code needs to be executed in one of two places: