Apps: Web Data Collection: Building Blocks: Conditions

Conditions are a type of building blocks. The purpose of conditions is to act as filters for your Event data, narrowing down the possibilities.

For instance, say you want to define the segment "All the visitors that googled “cars” to reach your website. You would choose the Event data block “Referrer” and the condition would be what they wrote in google, in this case “cars”.


Further reading:

For more information about "Building blocks".



The Restrict per visitor or session condition will let you restrict an Event based on an interval. You will have to specify one parameter in order for the condition to work.


The parameter will let you specify the interval for which the Event should be restricted to.


Selecting session in Restrict per will restrict the Event to only trigger once per session. Selecting visitor will restrict the Event to only trigger once for each visitor.


A session expires when a user closes his browser, while a visitor identifies a unique browser (by cookie) over multiple sessions.


This condition cannot be wired to any Event data.


Further reading:

Creating your first events


The Value contains condition will let you restrict an Event based on a connected Event Data. You will have to specify two parameters in order for the condition to work.


First parameter is the string that should be found in the second parameter that is a connected Event data value.


By specifying "products" in Should be contained and selecting Page URL as In Event Data will restrict the Event to only trigger when the string "products" can be found in the current URL.


Note that this condition must always be wired to an Event Data before you can select it as a parameter.


The condition is case-insensitive.


Further reading:

Creating your first events


The Value does not contain condition will let you restrict an Event based on a connected Event data. You will have to specify two parameters in order for the condition to work.


First parameter is the connected Event data Value where the second parameter, a string, should not be found.


By selecting Page URL as Value and "products" in Does not contain will restrict the Event to only trigger when the string "products" is not found in the current URL.


Note that this condition must always be wired to an Event data before you can select it as a parameter.


The condition is case-insensitive.


Further reading:

Creating your first events


The Value does not match regex condition will let you restrict an Event based on a connected Event data. You will have to specify two parameters in order for the condition to work.


First parameter is the connected Event data Value where the second parameter, a regular expression, should not be found.


By selecting Page URL as Value and "[0-9]" in Does not match regex will restrict the Event to only trigger when any of the characters 0 to 9 are not found in the current URL.


Note that this condition must always be wired to an Event data before you can select it as a parameter.


Further reading:

Creating your first events


The Value is contained in list condition will let you restrict an Event based on a connected Event data. You will have to specify two parameters in order for the condition to work.


First parameter is the connected Event data Value where the second parameter, a comma separated list, should be found.


By selecting Referrer as Value and "facebook,twitter" in Comma separated list will restrict the Event to only trigger if the words "facebook" or "twitter" are found in the current referrer.


Note that this condition must always be wired to an Event data before you can select it as a parameter.


The condition is case-insensitive.


Further reading:

Creating your first events


This condition will be true if the value connected to it is empty.


For instance, you can test if the user comes from direct traffic by adding a Value is empty building block connected to a Referrer building block. 

If the referrer is empty, your condition will be true and your visitor will hence be considered to come from direct traffic.


The Value is equal to condition will let you restrict an Event based on a connected Event data. You will have to specify two parameters in order for the condition to work.


First parameter is the connected Event data Value that the second parameter, a string, should be equal to.


By selecting Page title as Value and "start page" in Should be equal to will restrict the Event to only trigger when the current page title is equal to "start page".


Note that this condition must always be wired to an Event data before you can select it as a parameter.


The condition is case-insensitive.


Further reading:

Creating your first events


The Value is greater than condition will let you restrict an Event based on a connected Event data. You will have to specify two parameters in order for the condition to work.


First parameter is the connected Event data Value that should be greater than the second parameter that is an integer.


Selecting Time on page as Value and 10 in Should be greater than will restrict the Event to only trigger if the time spent on page is greater than 10 seconds.


You also have the option to select Strictly (yes or no). Selecting No here will make the condition do the comparison as greater than or equal while selecting Yes will only use greater than.


Note that this condition must always be wired to an Event data before you can select it as a parameter.


Further reading:

Creating your first events


The Value is not contained in list condition will let you restrict an Event based on a connected Event data. You will have to specify two parameters in order for the condition to work.


First parameter is the connected Event data Value where the second parameter, a comma separated list, should not be found.


By selecting Referrer as Value and "facebook,twitter" in Comma separated list will restrict the Event to only trigger if the words "facebook" or "twitter" are not found in the current referrer.


Note that this condition must always be wired to an Event data before you can select it as a parameter.


The condition is case-insensitive.


Further reading:

Creating your first events