Extra Options

Audiences (Segments)

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 the 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.

What is the “Audiences” condition?

The “Audiences” condition allows you to pre-define audience/segments of users so that you can display audience-based content. Adding or removing users from these audiences is done based on the dynamic versions the user has seen.

Example:

  • If a user arrives at the site from a Facebook Campaign targeted to women only, you can create an audience called “Females” and add her to the audience. You can then set another trigger placed in another location on your website and set an audiences=female condition to display content targeted to women.

How to Set Up Audiences-Based Content

Setting up audiences-based content requires three simple steps:

  1. Create the audience/segment
  2. Set up the conditions to add (or remove) users from the audience
  3. Set up audience-based content

Step 1: Creating a new audience

  1. On your WordPress dashboard, go to “If>So → Audiences
  2. Enter the desired name for your new audience.
  3. Click “Create New Audience” 
  4. Once the audience is created, its name will be displayed in a list.

Step 2: Adding (or removing) users from an audience

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.

Add or remove users from an audience using a shortcode

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.

Step 3: Setting up audience-based content

*Elementor or Gutenberg user? This condition can be used to set up a conditional element or block (Learn more: Gutenberg | Elementor).

  1. On your WordPress dashboard, go to “If>So → Add New Trigger.
  2. Click “Select a condition” and select “Audiences.
  3. Select an operator (“Audience is” or “Audience is not”)
  4. In the content field, specify the content to be displayed if a user is part of the audience.
  5. In the default content field, specify the content to be displayed if the user is not part of the audience.
  6. Click “Publish” and paste the shortcode generated by If-So to your website.

Screenshots

FAQs

  • Will this work with server and WordPress caching solutions?

    Yes.

    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.

    Learn more about Page Caching Compatibility.

  • Can I redirect users to a different page based on conditions?
    Yes. You can redirect users based on each one of the conditions by pasting a simple JavaScript code in the dynamic version content field. Click here for a step by step guide.
  • Was this Helpful ?
  • YesNo
Ready to get started?
Try it on your website