URL match variables

You can use a URL match in combination with a funnel to enable more specific and flexible URL matching. In this example we are going to explore how to match against the following two URLs specifically /cart/payment and /checkout

1. Define a URL match

First we are going to edit our URL match to the following /{+page}.

See the URL match docs for more information.

2. Add a funnel

While the URL match will correctly match /cart/payment and /checkout it will also match other unwanted URLs like /register etc. To fix this we are going to add a funnel directly after the URL match to specify the values of {page} that we accept.

URL match variable values are always trimmed of slashes. So in either case of /cart/payment or /cart/payment/ the value of the page variable will be cart/payment