Trigger - Multiple Measures

In the foresee_configuration.json file, the client can define multiple measures, each with different triggering criteria. When the client makes a call to ForeSee.checkIfEligibleForSurvey(), it checks each measure in turn.

If the user is eligible for more than one measure defined in the JSON file, they are only invited to the first measure defined in the ‘measures’ collection. Example: If the JSON file is defined like so:

{
    "clientId": "cid",
    "measures": [
        {
            "surveyId": "sid1",
            "launchCount": 3
        },
        {
            "surveyId": "sid2",
            "launchCount": 3
        }
    ]
}

If the user is eligible to be invited to both (which is the case since the two measures have the exact same triggering criteria), the user is only be invited to the first measure, “sid1”.

Other articles in this section:

  1. Trigger Overview
  2. Invite Modes
  3. Invitation API
  4. Page Views
  5. Repeat Days
  6. Sampling
  7. Multiple Measures (current article)
  8. CPP's
  9. Localization