Javascript API can be used to set custom properties and for prompts filtering. For example, the following code is used to set custom properties.
OnVoard('prompt', 'setCustomProperties', {
'logged_in': true,
'source': 'google',
});
Next, we'll edit prompt and specify conditions to filter by custom properties.
Go to Settings > Advanced > Custom Properties Filtering
and specify conditions. In the above example, we are filtering for users with property logged_in
equal true.