- Optimizely Web Experimentation
- Optimizely Performance Edge
This topic describes how to:
- Exclude yourself or internal employees from experiment results
- Set up IP filtering on your Optimizely Web Experimentation or Optimizely Performance Edge project
- Filter multiple IPs or an IP range
IP filtering allows you to exclude certain IP ranges from showing up in your experiment results. This is also how you can exclude yourself or your company from experiment results.
Optimizely Performance Edge is a lightweight experimentation product that delivers significantly faster performance than previous versions of Optimizely Web Experimentation. It does this by relying on a streamlined "microsnippet" which limits the range of available features.
Optimizely Performance Edge and Optimizely Web Experimentation filter IP addresses the same way, so all information contained in this article applies to experiments created with either version.
IP Filtering will not prevent you from seeing an experiment; it will simply make sure to filter you and your actions out from the Results page. To exclude IP ranges from being included in experiments, see our article on IP Address Audience conditions.
How does IP filtering work?
IP filtering is done at the project level, so if you have a staging server and a live page it might make sense to keep them in separate projects so that you don't have to keep turning IP filtering on and off.
To access IP Filtering from the Home page, click Settings and then Advanced. In the field under Results Filtering, enter the IP(s) that you don't want to be counted in your experiment results.
The IP filtering option lets you exclude as many IPs as necessary in a single line. Bear in mind that you should be using your public IP address. Also, keep in mind that Optimizely Web Experimentation and Optimizely Performance Edge's IP Filter has a max character limit of 1500.
IP filtering is applied at the time you review the results page regardless of when the experiment was started. So, even if you already have experiments running prior to adding IP filtering to the project, the filter is applied when you view the results page.
Setting up Multiple IPs to be Filtered
If you're filtering just one IP address, you can enter it normally.
However, if you need to enter multiple IPs, you can also use regular expressions (regex). To separate multiple IP addresses, add a vertical pipe ("|"), between them. Note that you're not required to use any special characters if you're just entering a single address.
An example of an IP filter for two IP addresses would be: ^34\.1\.213\.45$|^90\.100\.5\.73$
Any additional IPs would also need a | between them to separate them. There is no limit on the number of IP addresses you can add; you’re only limited by the 1500 character limit.
Setting up an IP Filter Range
Optimizely Web Experimentation and Optimizely Performance Edge support regex, so we can use it to create an IP range easily without having to enter every IP address in it.
For example, if you wanted to filter out the IP range
184.108.40.206 you would want to use a regEx range instead of writing in every single IP address for that range. Using regEx this would end up looking like this:
If regEx is a bit out of your wheelhouse, you can use this handy tool to help you generate these regex formatted IP ranges.