Skip to content

Targeting Rules

If you have multiple active surveys that could appear on the same page, Appzi shows only one at a time.

The survey with the highest priority will be shown, based on these criteria (in order):

  • Has specific Device Targeting
  • Has specific Page Targeting or Custom JS rules
  • Is Older (created earlier in time)

To synchronize auto-triggers across browsers and devices, a userId property must be set. To set an user id just add a userId property to your appziSettings. The userId must be no longer than 50 characters. If the userId is not set then the auto-trigger resolution will take place on the client.

Setting the userId also marks the user as “authenticated”, allowing them to match the “User is Logged in” rule.

<head>
<!-- .... -->
<script>
window.appziSettings = {
userId: "some-id",
};
</script>
</head>

You can opt out of Appzi’s built-in targeting by using JavaScript triggers, such as calling appzi.openSurvey directly. See Triggering Surveys for more information.