Skip to main content

Default Behavior

Route parameterization replaces dynamic path segments with stable placeholders. It groups route filters and page-level insights by page type instead of by individual page visit. The SDK applies a built-in parameterizer when you do not supply one. For example:
becomes:
Static path segments remain unchanged.

Add Application Patterns

The parameterizeRoute option replaces the built-in function. Call defaultParameterizeRoute() inside your function to keep the default behavior: Install the recorder package to import the built-in helper directly:
This example converts /teams/acme-inc/projects/123 to /teams/:slug/projects/:id.

Design Stable Patterns

  • Return the same value for routes that represent the same page type.
  • Preserve enough static text to distinguish different page types.
  • Keep the leading slash.
  • Avoid placeholders that contain user or resource values.
  • Test routes with several identifier formats before deployment.
Changing a pattern changes the grouping of new page-level metrics. Existing recordings keep the route values captured by their SDK version.

URL Privacy

Route parameterization changes path segments in route-change and initial page events. It does not remove query strings or fragments from the initial page URL. It also does not change network request URLs. Do not place personal data, secrets, or access tokens in URLs. Configure privacy and data masking separately.

Get started

Configure the Recording SDK.

Explore recordings

Review route journeys and page-level insights.