SatisMeter shows surveys based on rules specified in the targeting settings. When installing our survey it sometimes make sense to bypass the targeting rules - just to check that the code is running properly and survey looks good on a certain page.
Web survey
To bypass the targeting rules on web, add forceSurvey: true
to the satismeter code snippet. Here is an example:
satismeter({
writeKey: "ly8bRUzEA",
userId: "1234",
traits: {
name: "John Doe",
email: "john@doe.com",
createdAt: "2017-01-28T13:10:26.255Z"
},
forceSurvey: true
});
iOS survey
To bypass the targeting rules on iOS, set forceSurvey
to true
. Here is an example:
[SatisMeter sharedInstance].forceSurvey = true;
[[SatisMeter sharedInstance] identifyUserWithUserId: @"007"
writeKey: @"ABCD"
andTraitsDictionary: traitsDictionary]
If we see the forceSurvey
flag, we will always show the survey, allowing you to make sure everything is working correctly.
Just make sure that you remove the forceSurvey
option when you're done with testing so that your targeting rules apply.