1. Home
  2. Campaign Management
  3. How can a user answer a survey more than once, so that the user could rate multiple blog posts?

How can a user answer a survey more than once, so that the user could rate multiple blog posts?

You can make use of scope feature in surveys. It is available in JavaScript API. By default, the scope of the response gets tied to user session and hence once a response is submitted it doesn’t appear again to the same visitor. By changing scope to blog post URL or postID, each visitor would be able to rate per blog post.

More about it is mentioned here

An example:  Show same survey to visitor everyday even if it has already been submitted

For your case, add this line in your JavaScript integration code and substitute the variables in CAPS –

_weq['webengage.survey.scope'] = {
  'scope' : _BLOG_POST_ID_
  'scopeType' : 'session',
  'surveyIds' : ["_ENTER_SURVEY_ID_"]
};

Was this article helpful?