VWO allows you to slice and dice the test reports to view how visitors from a specific traffic segment interacted with your website. Using the custom segments, you can specify the values for your conditions using regular expressions. With this, you can target a set of URLs instead of just one.
Regular expression allows you to use a sequence of symbols and characters to perform a string or pattern matching. VWO offers limited support for regular expressions to identify groups of visitors during the segmentation of reports.
- Login to your VWO account.
- Select a testing type you want to work with, say A/B, Multivariate, or Split URL.
- From the testing dashboard, select a test for which you want to view the report.
The test SUMMARY page appears
- Go to Detailed Reports > Goal or Variations.
- In the graphical reports section, click the All Visitors option.
The segmentation dialog appears.
- In the segmentation dialog, go to the CUSTOM section.
- From the first dropdown, select SOURCE > Landing Page URL.
- From the second dropdown, select the operator Matches Regex (case insensitive) and enter the appropriate URL value in the field next to it.
- Click Done to apply the selected segment to the campaign report.
The report with the updated data for the specified segment appears.
Regular expression features are supported in VWO report segmentation
All regular expressions are case insensitive. VWO does not perform a case match for any string.
Most regular expression implementations match part of the text. To enter a regular expression matching the end and start of a string, use ^ and $ in the expression, respectively. VWO regular expression support requires all patterns to be completely anchored.
For example, to match the string ‘I am a VWO user’, you can enter the regular expression as follows:
VWO post-segmentation feature (report segmentation) supports the following wildcards:
The following forms of grouping are supported:
Escaping Reserved Characters
There are certain characters that form a part of the regular expression language. To match these characters, these characters must be escaped. For example, the ? character is a reserved character in the regular expression. To match this character in the string, it needs to be escaped like abc\?
The following characters are reserved and must be escaped if the intended use is to match that character: