Decibel Insight
Knowledgebase

Regex Path

Regex Paths must be configured in the Decibel Insight reporting App, after which the rule will apply to all subsequently recorded pageviews.Regex (or Regular Expression) Paths are used to describe patterns where multiple URLs may actually identify a single page on the website. For example, on a billing system, the customer’s Contract ID may be used within the URL structure, as shown in the following sample URLs:

A regular expression may be written to identify and normalize these URLs, so that aggregated data for these pages can be shown in heatmaps and other Decibel Insight reports. In this example, the following regular expressions could be used:

Regular ExpressionReplacement

^Billing/[A-Z0-9]{3}-[A-Z0-9]{3}-[A-Z0-9]{3}/$

Billing/

^(.+)/[A-Z0-9]{3}-[A-Z0-9]{3}-[A-Z0-9]{3}/$

$1/

The first regular expression is more precise, only matching URLs that start with “Billing”, while the second regular expression will match any URL that ends with a Contract ID and retain the start of the URL. In both of these examples, all three URLs above will be converted to “www.mywebsite.com/Billing/”.

Regex Paths must be configured in the Decibel Insight reporting App, after which the rule will apply to all subsequently recorded pageviews.