Frigade’s targeting logic allows you to personalize the experience for each user, connect multiple onboarding experiences seamlessly together, and define individual step completion criteria.

You can also sync with your existing analytics platform to leverage user properties and events you’re already tracking. This allows you to target users based on their actions and properties in your product.

Flow targeting

At the highest level, every Flow you create will have optional targeting logic. You can view this targeting logic on the Flow Overview page and modify it by tapping “Targeting” button. The Flow Targeting logic is used to determine who should see the Flow.

Flow Targeting

Use cases

Here are some common ways we see developers using Flow targeting:

  • Only show a Flow to new accounts by comparing account creation date
  • Show a Flow to users with a certain job function or other user property
  • Show a Flow to users who have taken a specific action in the product (e.g. an upsell once they use something 10 times)
  • Show a Flow to users who have completed another Flow (e.g. a “next steps” Flow after a user completes an initial onboarding Flow)
You can refer to the Users SDK and API docs for more info on how to create and leverage User Properties and User Events in targeting.

Step targeting

Beyond Flow targeting, you can also leverage targeting logic within Flows themselves.

Flow Targeting

Use cases

Here are some common ways we see developers using Step targeting:

Boolean logic

Supported operators are: &&, ||, ==, !=, >, <, >=, <=

User props

All data you’ve made available to Frigade can be used in your targeting logic, including the following properties supported on Users:

user.flow('<flowId>')
User Flow state (e.g. COMPLETED_FLOW)
user.flowStep('<flowId>', '<stepId>')
User Flow Step state (e.g. COMPLETED_STEP)
user.event('<eventId>').count
User event count
user.property('<property>')
User properties
user.propertyContains('<property>', '<searchString>')
User properties partial match (). It supports searching in strings, objects, and arrays.

Organization props

All data you’ve made available to Frigade can be used in your targeting logic, including the following properties supported on Organizations:

organization.property('<property>')
Organization properties
organization.event('<eventId>').count
Organization event count

Examples

Here are some examples of some of the most popular targeting logic we see developers using.

Relative dates

You can use relative dates in your targeting logic similar to how this is handled in plain Javascript. For example, you can target users who are older than at least 30 days:

user.property('accountCreatedDate') < new Date() - 86400000 * 30

Property matching

Target a Flow to a user who has connected their bank account:

user.property('bankAccountConnected') == true

Check if a property is present

Target a Flow to a user who has a job title:

user.property('jobTitle') != null

Absolute dates

Target a Flow only for users signed up after a certain date:

user.property('accountCreatedDate') > '2023-03-01 00:00:00'

Flow state

Target a Flow to a user who has completed another onboarding Flow already and has connected a bank account:

user.flow('flow_i6kH7DjcbE6tiaQd') == 'COMPLETED_FLOW' && user.property('bankAccountConnected') == true`

Target a Flow when a Step in another Flow is completed:

user.flowStep('flow_i6kH7DjcbE6tiaQd', 'my-step-id') == 'COMPLETED_STEP'

Event counts

If the event properties do not matter and you simply wish to see if a user has triggered an event, you can use the following expression:

user.event('pageView').count > 0

Automatically trigger when an organization sends a specific event:

organization.event('connectedBankAccount').count > 0