The Audience step is specific to all experiment types (A/B testing, Personalization, Interaction or Survey ), and using it in an improper way is one of the most common factors that prevents an experiment from being displayed properly.
Into the Audience step you must insert the URLs of the webpages where you want your experiment to trigger.
You can set a condition based on the following statements:
- URL is
- URL is not
- URL starts with
- URL ends with
- URL contains
- URL does not contain
- URL Regex
- Page contains keyword.
These are the most common cases where the misuse of the Audience tab causes errors in applying an experiment:
One of the most common mistake is directly copying the URL from the browser and pasting it into the Audience field when using the “URL is” condition.
When doing this, most of the time, a “/ ” character will be added at the end of the URL that has been copied into the Audience tab.
It is very important to check if the URL inserted into the Audience tab is identical as the one from the browser.
This is a general example of the way the URL appears into the browser:
And the way that it has been copied into the Audience tab:
Another case that can also cause errors in applying an experiment is when a user types in manually an URL into the Audience tab and omits the fact that the actual URL does not contain ‘www’.
In this case, when the condition used is “URL is ” , the link will be considered invalid and the experiment will not be applied.
This is an example of the way the URL appears into the browser:
And the way that it has been typed into the Audience tab:
This case presents the situation when a user enables SSL Certificates for a website. What will happen regarding the URL structure is that ‘http‘ will become ‘https‘.
In this case if a user has already created an experiment on the initial version of the website (where the URL structure is set by using ‘http’), that specific experiment won’t apply on the website where the SSL was enabled (where the URL structure is set by using ‘https’) due to the fact that the URL condition becomes invalid.
This is a general example of the way the URL appears into the browser after SSL Certificate has been enabled:
And the way that it has been set into the Audience tab before enabling SSL Certificate:
A solution for this is to Edit the already created experiment and modify the URL by replacing ‘http’ with ‘https’.
In this case it is important to also modify the website URL that has been introduced into the platform in order to prevent future errors that may appear.
You can do this by going to ‘Edit website‘ into your Dashboard and making the changes into the coresponding pop up window:
This case presents the situation when only a part of the desired traffic is included into the experiment.
Let’s say for example that an active paid campaign exists with the purpose of directing traffic to the home page of an website. In order to be able to track the results of that specific UTM parameters have been added to the initial URL .
In this case if the URL condition into the Audience tab is set using ‘URL is‘ the traffic that comes from the paid campaign will not be included into the experiment (this happens due to the fact that the condition is set to trigger the experiment only for identical links, which in our case www.example-domain.com is not identical with www.example-domain.com/?utm_source=newsletter…).
A solution for this is to set two URL conditions:
- one it should be ‘URL is‘ – http://www.example-domain.com (the link should be identical with the one from the browser, pay attention to the cases mentioned above)
- and the other it should be ‘URL starts with‘ – http://www.example-domain.com? ( after ? are the extra parameters)
This is a general example of the way the URL with parameters appears into the browser:
And the way that the URL condition must be set into the Audience step: