I'm trying to create content groups in Google Analytics. How do I match a page with sport/[SOMETHING] and not sport/[SOMETHING]/[SOMETHING]
Match:
Do not Match:
We can say "not the following characters" using [^...]
the ^
stands for "not". So to restrict the levels we can use [^/]
.
Here some examples:
Match /sport/something : ^/sport/[^/]+$
Has to start with / and then exactly 1 / has to follow: ^/[^/]+/[^/]+$
or ^(/[^/]+){2}$
Generalized for start with / and followed by 4 / at most: ^(/[^/]+){1,5}$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With