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