Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Move '#' v. '/' rationale note elsewhere

...

The following eventex matches a pageview event and applies a regex to the event attribute url:

Code Block
languagejavascript
themeConfluence
languagejavascript
select when web pageview url re#/archives/\d{4}#

This pattern will match all events in the event stream that contain an attribute named url that has a value that contains the string /archives/ followed by four digits. This particular event would indicate that the user has viewed a Web page that has a URL matching the regex.

...

the

...

regex

...

.

You can test more than one attribute by simply including them in the eventex. Multiple attribute-regex pairs are evaluated. All of them must be true for the event expressions to match. For example:

Code Block
languagejavascript
themeConfluencelanguagejavascript
select when web pageview url re#/archives/\d{4}/#  title re#iphone#i 

...