Define a page group with URL Regular Expression
Use standard regex rules to capture a portion of a URL to define your page group.
These steps show you how to use the URL Regular Expression method to define a page group.
- In the Pattern field, enter the full URL leading up to the portion that you want to match, followed by the regular expression to capture the text that you want for you page group name (for example, https://www.example.com/(\w+)).
- In the View Group field, enter the variable that you want to capture (for example, $1).
- Check that the correct value is captured for the page group. In the Enter Test URL field, enter the URL that you know includes the text that you want applied to the page group (for example, https://example.com/shop/account/home), and click Test.
If the match is successful, that row
turns green and the name of the page group appears in the Result field (for example, shop). Click OK to save the