# One audience for every landing page under our /promo/ path?

Asked by nadia.r on 2024-06-18. Tags: cql, audiences, session.

As a growth PM, I want anyone whose session started on any of our promo landing
pages to fall into one audience, so that they get consistent follow-up
messaging as they browse.

We have about a dozen pages under /promo/ and we launch new ones monthly.
Listing every URL in the condition and updating the list each launch is what I
want to avoid.

what's the simplest option here?

## 1 answer

### Accepted answer from Chidi Okafor (2024-06-19)

The simplest option is `matches` on the session's landing page instead of
exact equality.

```cql
session's landingPage matches "/promo/"
```

`matches` does substring and pattern matching, while `is` requires exact
equality. Since all your campaign pages share the `/promo/` prefix, one
condition covers every page you have and every page you launch later. No list
to maintain.

Two things to keep straight:

1. `session's landingPage` is where the session STARTED. That is what you
   asked for (entered through a promo page, then browsed on). If you instead
   wanted "is currently viewing a promo page", that is `page's path`, which
   reflects the current page.
2. If you ever do have a stable, finite set of pages, the exact-match
   alternative is an `is in` list, like `page's path is in ["/home",
   "/about"]`. For a growing set like yours, the pattern form is the right
   call.

#### Reply from nadia.r (2024-06-19)

The landingPage vs current page distinction was exactly the thing I was
fuzzy on. One condition, set and forget. Thanks!
