Skip to content

Commit 2476961

Browse files
authored
Merge pull request #213 from openreplay/nick-delirium-patch-4
2 parents 5ed21d8 + c1420a4 commit 2476961

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pages/en/sdk/constructor.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ There are a set of options you can pass to the constructor. Only `projectKey` is
135135
- `obscureInputNumbers?: boolean` Obscures numbers in input fields. Number values will be converted to a random chain of asterisks. If disabled, make sure to [sanitize input fields](/installation/sanitize-data/#granular-level) that may contain sensitive data such as zipe codes or credit card details. Default: `true`.
136136
- `obscureInputDates?: boolean` Obscure dates in input fields. Date values will be converted to a random chain of asterisks. Default: `false`.
137137
- `defaultInputMode?: 0 | 1 | 2` Default capture mode for input values. Respectively: plain, obscured or ignored. Default: `2` (ignored).
138+
- `urls`: Lets you customize how page location events are recorded via following options:
139+
- `urlSanitizer?: (url: string) => string` Lets you sanitize page url (to remove usage tokens for example).
140+
- `titleSanitizer?: (title: string) => string` Lets you sanitize page title.
141+
- `resourceNameSanitizer?: (url: string) => string` Lets you sanitize URLs for recorded network resources.
138142

139143
Note that excluded data is obscured or suppressed before sending the data to OpenReplay servers. Changes applied to the above options cannot be retroactive and will only apply to newly collected data. See [Sanitize Data](/installation/sanitize-data) for more details.
140144

0 commit comments

Comments
 (0)