Apps: Web Data Collection: Building Blocks: Conditions

This condition will be true if the value connected to it contains something, i.e. it is not empty.


For instance, you can test if the user comes from a referrer (as opposing to typing in your URL directly in the browser) by adding a Value is not empty building block connected to a Referrer building block. If the referrer is not empty, your condition will be true and your visitor will be considered to come from a referrer.


The Value is not 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.


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


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


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 smaller than condition will let you restrict an Event based on a connected Event data. You will have to specify at least two parameters in order for the condition to work.


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


Selecting Time on page as Value and 10 in Should be smaller than will restrict the Event to only trigger if the time spent on page is less 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 smaller than or equal while selecting Yes will only use smaller 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 condition “Value is true” will trigger the Event if the value returned is true.


Example: You are exposing a banner to 50% of your visitors using the “sample rate” building block to get an understanding of whether the banner has a higher conversion rate or not. The “sample rate” building block is generating a true/false value randomly to your visitors. When the sample rate-building block returns a true value, the Event will trigger i.e the banner will appear.



The Value matches 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 be found.


By selecting Page URL as Value and "[0-9]" in Matches regex will restrict the Event to only trigger when any of the characters 0 to 9 are 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