In this article: About the Audiences in If-So | Creating a New Audience | How to Add and Remove Users from a Audiences | The Audiences/Segment Condition
If-So allows you to Segment users into audiences based on the dynamic version displayed to them or pages they visited on your site. You can then create an “Audiences” condition to display dynamic content to users who are part of the Audience.
The “Audiences” condition allows you to pre-define audience/segments of users so that you can display audiences-based content. Adding or removing users from these audiences is done based on the dynamic versions the user has seen.
Setting up audiences-based content requires three simple steps:
Once you have created at least one audience, you will have the ability to add or remove users in that particular audience based on certain conditions and triggers.
You can find the option to add or remove users from an audience just below the dynamic versions’ conditions. Simply click the “Audience” option and specify when to add a user to an audience when the condition is met, remove them from other audiences, or both.
A second way to add or remove users from an audience is using one (or more) of the shortcodes below. The add/remove action will take place when the user loads a page with the shortcode.
Add a user to an audience
[ifso-audience type='add' audience='YOUR-AUDIENCE-NAME']
Remove a user from an audience
[ifso-audience type='remomve' audience='YOUR-AUDIENCE-NAME']
*Make sure to replace “YOUR-AUDIENCE-NAME” with your audience name. The value is case sensitive.
Whether you are using a caching plugin or server caching, you can navigate to the plugin settings and enable the "Page Caching Compatibility" option. With the option enabled, dynamic triggers will be rendered in a separate request that will take place after the loading of the cached version.