Skip to main content
Skip table of contents

Event Decision Criteria

A Web realtime decision’s Event decision criteria allow you, through their use within a smart asset, to present web page content accordant with RPI’s knowledge of the web events with which a visitor is associated. Such web events include standard events, such as page visits, form submissions and link clicks, and custom states and metrics, captured following execution of scripts at (typically) an RPI landing page.

Custom web events are defined using web events adapters, which are managed at the Web Adapters configuration interface, and which can be associated with landing pages (for more information, please see the Configuration and Landing Page Designer documentation). To use custom web events in a web decision, you need to select a Web events adapter. For more information, please see the Web realtime decision documentation.

The Form Submission, Link Click and Page Visit standard web event types are available irrespective as to whether a web events adapter has been selected at the realtime decision. Configuration settings RulesWebLinkClicks and RulesWebPageVisits can be used to specify value lists to be used when selecting values for Link Click and Page Visit criteria, respectively.

If a web events adapter has been selected, any metrics All/Any states that it contains are also listed. in addition, the standard scorecard and User defined decision criteria types are also available.

The following properties are displayed at event decision criteria in edit mode:

  • Event Name: read-only

  • Matches Values: this property allows you to specify whether values provided are to be matched exactly, or if are to be contained anywhere within the supplied Event Detail. A dropdown, it exposes values 'Within' (the default) and 'Exactly'.

  • Event Detail: clicking the property displays the Specify Values dialog, in which you can provide one or more values with which to configure the criterion.

  • Operator: this property allows you to specify when the form submission happened (or didn't happen). A dropdown provides access to the following values:

    • Happened anytime (the default)

    • Has never happened

    • Happened in the last/Didn't happen in the last: if one of these values is selected, the Time Frame property is shown.

    • Latest: if this value is selected, provision of Event Detail is mandatory. At evaluation, the criterion is satisfied when the Event Detail provided is the latest within the context of the selected Event Name.

  • Time Frame hour(s): this property is shown if Operator is set to one of 'Happened in the last' or 'Didn't happen in the last'. A mandatory decimal field, the value provided must be more than 0, and less than 999,999.99.

Note that the RPI Realtime API web.config setting NoDaysPersistWebEvents controls the time period for which web event data is stored in the realtime cache.

You can refine an event criterion by adding event metadata criteria. These allow you to respond to very specific occurrences – for example, the addition of a specific type of product to a shopping cart.

A Realtime Event Metadata Criteria section is shown at bottom of the event criterion editor. It allows you to specify additional criteria to further refine the event criterion. It contains the following:

  • All/Any

  • Add New Criterion: you can add event metadata criteria based on an event metadata-enabled attribute list specified at the selected web events adapter. Custom event metadata criteria are also supported.

  • Event metadata criteria

Note that RPI Realtime appsettings setting MaxNoEventMetadataInstances controls the maximum amount of event metadata that can be stored per event.

When in read-only mode, an event decision criterion appears as per the following example:

If refined with additional event metadata criteria, the criterion is shown like this:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.