Audience facts

You can use the following facts to target a specific segment of visitors and/or a specific part of your website.

Visits User actions Technology User history & data Misc
Days Custom fact Browser language Cookies Audience history
Month Exit intent Device Data layer Collision prevention
Page Content Goal history Screen width Geo data Countdown
Page views Interaction     If block
URL Scroll from top      
Referral type User inactivity      
Referral URL        
Time        
Total visits        

 

Visits

Days

mceclip1.png

Set the day(s) you want your project to be shown. In the example above Audience will be true if it's either Monday or Tuesday when the visitor visits the website.

 

Month

mceclip2.png

Set the month(s) you want your project to be shown. In the example above Audience will be true if it's January when the visitor visits the website.

 

Page Content

mceclip3.png

Set an element that needs to exist on the page for the project to be shown. Enter the CSS selector of the element and choose if you just want to check if it exists or if you also want it to match some specific text by choosing match type in the dropdown and enter the text that need to be matched in the second input field. In the example above Audience will be true if an element with the selector .search input exists on a page the visitor visits.

The difference between Exact match, Simple match, Contains & Regex

 

Page views

mceclip4.png

Set the number of pages that needs to be seen before the project should be shown. In the example above Audience will be true if a visitor visits more than 3 pages after being allocated to the project.

 

URL

mceclip5.png

Set an URL match to target a specific page or pages. In the example above Audience will be true if a visitor visits a page that has an URL that contains /checkout. The difference between Exact match, Simple match, Contains & Regex

 

Referral type

mceclip6.png

Choose a referral type (Organic, Social, or Referral (other). In the example above Audience will be true if a visitor is arriving from a search engine.

 

Referral URL

mceclip7.png

Target a specific referrer by URL. In the example above Audience will be true if a visitor is arriving from an URL that contains facebook.
The difference between Exact match, Simple match, Contains & Regex

 

Time

mceclip8.png

Set time of day your project should be shown. In the example above Audience will be true if a visitor visits the website between 12:00 and 14:00.

 

Total visits

mceclip9.png

Set the number of visits that need to be done before the project should be shown. In the example above Audience will be true if a visitor has visited* the website three times before and comes in a fourth time.
*A new visit is registered if more than 30 minutes has passed since last visit.

 

User actions

Custom fact

mceclip0.png

Write your own javascript statement and call factSuccess(); to make Audience true. This could be a API request where you want a specific answer to target specific visitors. Calling factSuccess makes the Audience fact evaluate to true.

 

Exit intent

mceclip11.png

Show your project if the user intends to leave the website (only for desktop). This becomes true when a user's mouse pointer leaves the page.

 

Goal history

mceclip12.png

Show your project if a goal of another project is fulfilled. In the example above, the project we are editing will only be visible for visitors that have been allocated our PDP project and successfully placed an order.

 

Interaction

mceclip13.png

Show your project if a visitor clicks on a specific element. Enter the CSS selector for the element as the value. If you want to set multiple elements that will trigger Audience you need to set these in seperate Interaction facts and then set the block matching to Match one of.

 

Scroll from top

mceclip14.png

Set a percent or pixel limit the visitor needs to cross for your project to be shown. In the example above Audience will be true if the visitor scrolls 20% from the top of the page.

 

User inactivity

mceclip15.png

Set the number of seconds of inactivity by the visitor before your project is shown. In the example above Audience will be true if the visitor is inactive for 90 seconds.

 

Technology

Browser language

mceclip16.png

Checks the value in navigator.language (browser language setting). In the example above Audience will be true if the visitor has the browser language set to Swedish.

 

Device

mceclip17.png

Set the device(s) your project should be shown for. In the example above Audience will be true if the visitor visits the website on a tablet or mobile device.

 

Screen width

mceclip18.png

Set the screen width (on load) that your project should be shown for. In the example above Audience will be true if the visitor visits the website and has a screenwith between 768px and 1023px.

 

User history & data

Cookies

Check if a cookie exists and/or match a value. 
The difference between Exact match, Simple match, Contains & Regex

 

DataLayer

Check if a dataLayer key exists and/or match a value. In the example above Audience will be true if the visitor gets an event in dataLayer named add_to_cart.
The difference between Exact match, Simple match, Contains & Regex

 

Geo data

Target visitors from different countries, and regions, or include/exclude visitors on IP. In the example above Audience will be true if the visitor visits the website from Sweden.

Note: When entering an IP address you need to hit enter to set it.
The difference between Exact match, Simple match, Contains & Regex

 

Misc

Collision prevention

mceclip5.png

Prevent projects to be shown for the visitor if he/she already seen another project. In the example above a visitor may only be allocated this project if they haven't been allocated the Siteshopping - 1 - PDP project. See How to run multiple projects at the same time without collision for more info.

 

Audience history

mceclip0.png

This fact will check if Audience has been true once before, and if so evaluate to true. This could be useful for example when a visitor only has some special data that can be evaluated on the first load but not later on (after navigation).
In other words, this fact, can work as an OR, where you set up a statement that needs to be true once, and then when that statement is no longer evaluable, this fact will make Audience true anyways. Remember to set Match one of for this to work as an OR.

 

Countdown

Set the number of seconds before your project is shown. In the example above Audience will be true 10 seconds after page load.

 

If block

mceclip6.png

A block used for grouping statements. If you use Match all, then all statements need to evaluate to true in that block, for the entire block to be true. If you use Match one of, then only one statement in that block needs to evaluate to true for the entire block to be true. You can also add more If blocks inside an If block to be able to set more advanced logik.

Was this article helpful?
0 out of 0 found this helpful