mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-05 04:53:26 +03:00
Update reasoning around disabling capture_pageview
This commit is contained in:
parent
34f8c60b34
commit
93962c0aca
1 changed files with 5 additions and 3 deletions
|
@ -93,9 +93,11 @@ export class PosthogAnalytics {
|
||||||
autocapture: false,
|
autocapture: false,
|
||||||
mask_all_text: true,
|
mask_all_text: true,
|
||||||
mask_all_element_attributes: true,
|
mask_all_element_attributes: true,
|
||||||
// this is disabled for now as its tricky to sanitize properties of the pageview
|
// This only triggers on page load, which for our SPA isn't particularly useful.
|
||||||
// event because sanitization requires async crypto calls and the sanitize_properties
|
// Plus, the .capture call originating from somewhere in posthog makes it hard
|
||||||
// callback is synchronous.
|
// to redact URLs, which requires async code.
|
||||||
|
//
|
||||||
|
// To raise this manually, just call .capture("$pageview") or posthog.capture_pageview.
|
||||||
capture_pageview: false,
|
capture_pageview: false,
|
||||||
sanitize_properties: this.sanitizeProperties.bind(this),
|
sanitize_properties: this.sanitizeProperties.bind(this),
|
||||||
respect_dnt: true,
|
respect_dnt: true,
|
||||||
|
|
Loading…
Reference in a new issue