Commit 7128ea4
authored
ENG-1630 - add posthog disable_session_recording (#949)
* ENG-1650: Update PostHog initialization settings in posthog.ts
- Set `autocapture` to false and `disable_session_recording` to true for improved data privacy.
- Adjusted user identification to use `window.roamAlphaAPI.user.uid()` for consistency.
- Changed session registration method to `register_for_session` for better session management.
* .
* ENG-1651: Improve user identification in PostHog initialization
- Updated the user identification logic to only call `posthog.identify` if a valid user UID is present, enhancing data accuracy and preventing unnecessary calls.1 parent ab00780 commit 7128ea4
1 file changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
| 43 | + | |
45 | 44 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 45 | + | |
| 46 | + | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
| |||
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| 55 | + | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
| |||
0 commit comments