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:
Add Application Patterns
TheparameterizeRoute 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:
/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.

