In the editor click the Audience icon to bring up Audience settings in a popup.
Drag the Audience statements you wish to use into the area on the right. By default, there is already an URL statement set for the website. Remove or change this and/or add further statements to setup your Audience and then click Save and then close Audience settings by clicking the x.
Basic audience
We have gathered the most common audience settings beneath the Essential category. Most experiments will only need one or two of these to target the intended Audience. Here you can target URL, Page Content, Device, etc.
Advanced audience
If you want to target a more complex Audience you will most likely find the statements you need in the other categories. Here you can target your Audience by specific interactions, browser settings, data layer, query parameters, etc.
General
Language
Targets visitors by language in the browser. Check this value by running navigator.language in the browser's console.
Geo data
Targets visitors by Geo data. Select key in the dropdown and choose IS/IS NOT and then enter/choose a value in the input/dropdown to match. For multiple IP numbers add these comma separated.
TIme of day
Uses getHours() and getMinutes() from the Date object to get the visitor's local date-time.
Days
Uses getDay() from the Date object to get the visitor's local day.
User agent
Uses navigator.userAgent to detect browser.
Notice: Please test this in preview because user agent values might change by browser version and these might not still be valid.
Screen width
Gets width from window.outerWidth
Parameters
Checks URL for specified parameters via indexOf on window.location.href
Notice: Might fail with preview parameters so test without these.
User history & data
Page views
Visitor's page views since first entered the website. This is stored in the cookie sg_cookie. This value can be checked by running sg_user.pageViews in the browser's console.
Total sessions
Visitor's total sessions since first entered the website. This is stored in the cookie sg_cookie. This value can be checked by running sg_user.totalVisits in the browser's console.
Page visited
Is a cross condition that you could use to target a condition based on the visitor's previously visited pages. This function checks pageViews stored in local storage in sg_ls_object.
Goal satisfied
Target visitors that have satisfied a goal.
Data layer
Target visitors by checking values in Data layer.
Notice: This currently only checks the first level in the Data layer object. To check further levels you need to set this up manually as a Custom audience.
User data
Target visitors by the information set with the User data object.
Cookies
Target visitors based on if cookie is set / has value.
Miscellaneous
If block
Use these to group statements.
Notice: It is really important to group similar statements with OR between to get correct logic in Audience statement.
Interaction
Target visitors that interact with the website. For example if the visitor clicks on a specific element.
Collision prevention
Use this to run multiple projects at the same time without these colliding.
For example, if you run two A/B tests on the same Audience or on pages that are close to each other (in the funnel) and that use the same KPI for evaluation you do not want visitors to get exposed for both tests. This because you won't know which variation combination, from the two tests, that lead to the conversion uplift/decrease. See how to set this up.
Scroll from top
Target visitors that scroll a certain amount on the website.
Countdown
Use this to delay your project.
Exit intent
Run the project on exit intent. Becomes true when the user tries to leave (mouse pointer is outside the browser window).
Notice: This only works on desktop.
Custom audience
Use to set up a custom statement.
Custom audience
If you still can't target your Audience with the predefined Audience statements, you can code your own Custom Audience by dragging a Custom Audience statement to the right area and then code your own statement and return true when this is fulfilled to make the statement TRUE.
When you have set up your Audience it is important to test the Audience to make sure that Audience is only TRUE where you want it to be true. Otherwise, your experiment may cause problems on other parts of your website.
Check these Audience examples for inspiration on how to setup your Audience.
Note: Remember to set the correct Audience mode for your website, otherwise your Audience might not evaluate when it should which can cause the experiment to not function the way you want.