Javascript API can be used to set custom properties and for campaigns filtering. For example, the following code is used to set custom properties.

OnVoard('prompt', 'setCustomProperties', {
'logged_in': true,
'source': 'google',
});

 

Next, we'll edit campaign and specify conditions to filter by custom properties.

Custom properties section in the ActionPop campaign editor, with the Condition button for adding a rule

In the campaign editor, open Custom properties and click Condition to add a rule. Each rule picks a property, a comparison and a value, so a rule reading logged_in equal true shows the campaign only to visitors your site has marked as logged in.