How to setup targeting / audience

You can edit the audience from the website editor:

Which opens a modal where you can create your audience:

Setting up an audience gives the user the possibility of deciding where and for which visitor a project will run.

Dragging and setting up the different audiences.

The different draggable components are:

  • IF block
    Drag this block to group rules and use ”AND/OR” logic
  • URL
    Run project when the URL is or contains a defined string.
  • Referral URL
    Run project when visitor is coming from a URL that is or contains a defined string.
  • Language
    Run project when users browser language is set to defined language.
  • Total Sessions
    Run project when visitor has visited the website X times with a minimum of 30 minutes between visits.
  • Page Views
    Run project when visitor has viewed a defined amount of pages
  • Time on site
    Run project when visitor has spent a defined amount of time on page
  • Days
    Run project on a certain day / certain days
  • Month
    Run project on defined months
  • Screen width
    Run project when visitors device screenwidth is more than, less than or equal to defined value.
  • Cookies
    Run project if there is a cookie has a defined value.
  • Query Parameters
    Run project if URL contains a query parameter with a defined value.
  • Page Content
    Run project if there is an element. There is also an optional parameter checking if the element contains a certain string and only to run on certain URL’s.
  • Interaction
    Run project on certain interactions like scroll, click and other interaction types.
  • Custom Audience
    Code your own audience. Any logic leading to return true activates the audience. Example:
    if(2>1) { return true; };

For matching agains url or any other value, use this guide:

How to match with exact match, simple match, contains & regex