...
Code Block | ||||
---|---|---|---|---|
| ||||
rule url_in_filter { select when web pageview where url.match(#re#/archives/\d{4}/#) notify(...) } |
Suppose, instead, that you had written the URL filter as a condition in a rule using the event attribute function:
Code Block | ||||
---|---|---|---|---|
| ||||
rule url_in_condition { select when web pageview if event:attr("url").match(#re#/archives/\d{4}/#) then notify(...) } |
These are, mostly, equivalent, but there are several subtle differences:
...