Adding metatags
Metatags allow you to personalize your website embedded survey to each survey recipient. If a metatag is not provided, we apply the default set within our web application (see What are metatags?)
Metatag validation
If adding metatags by score type (e.g. thank_you_note_promoter, thank_you_note_passive, thank_you_note_detractor) they will work only if 'Customise based on score' switch is enabled within the web interface (on the design step of the survey).
For thank_you_link_url and thank_you_link_note to work, you will also need to enable the 'Add a link' switch in the web interface.
Here is how metatags might look like:
<script>
var Zenloop = window.Zenloop || {};
Zenloop.recipient = {
identity: '[email protected]',
identity_type: 'email',
first_name: 'John',
last_name: 'Doe',
properties: {
color: ['red', 'blue'],
height: [100, 200, 300]
},
metatags: {
survey_question: "How likely are you to recommend %[question subject] to a friend or colleague?",
question_subject: "zenloop",
request_for_comment_all: "Tell us a bit more about why you chose %[score] as a score",
thank_you_note_all: "Thanks for your feedback!",
thank_you_link_text_all: "example text",
thank_you_link_url_all: "https://www.example.com"
}
};
</script>
Or if you are looking to customise based on score the survey recipient provides (e.g. a different message for detractors vs promoters) - see how we have structured the request_for_comment
here (or see a full list at Implementing metatags):
<script>
var Zenloop = window.Zenloop || {};
Zenloop.recipient = {
identity: '[email protected]',
identity_type: 'email',
first_name: 'John',
last_name: 'Doe',
properties: {
color: ['red', 'blue'],
height: [100, 200, 300]
},
metatags: {
survey_question: "How likely are you to recommend %[question subject] to a friend or colleague?",
question_subject: "zenloop",
request_for_comment_promoter: "Tell us a bit more about why you chose %[score] as a score",
request_for_comment_passive: "Tell us a bit more about why you chose %[score] as a score",
request_for_comment_detractor: "Tell us a bit more about why you chose %[score] as a score",
thank_you_note_all: "Thanks for your feedback!",
thank_you_link_text_all: "example text",
thank_you_link_url_all: "https://www.example.com"
}
};
</script>
Updated over 2 years ago