Dariusz Niemczyk
2d1d42b90e
Globally replace all console.logs via codemod ( #6827 )
...
This commit replaces all the `console.log` to `logger.log` via an automated script.
Related: vector-im/element-web#18425
2021-09-21 09:48:09 -06:00
James Salter
73f9e48c11
Fix comment
2021-09-15 14:17:52 +01:00
James Salter
93321d96f0
lint
2021-09-15 14:10:15 +01:00
James Salter
8f1204c32e
Update comment reflecting tracking scheme via analytics ID
2021-09-15 13:00:59 +01:00
James Salter
76c782c64c
Remove all room data from tracking
...
Always redact room fragments entirely; remove room utils
2021-09-15 12:58:26 +01:00
James Salter
48fbbf2f44
Fix import, convert event type to constant
2021-09-15 09:48:48 +01:00
James Salter
c2192a78bc
More lint
2021-09-14 18:16:48 +01:00
James Salter
6c1dea09e8
lint
2021-09-14 17:46:56 +01:00
James Salter
7344a177e3
Fix tests, swallow errors
2021-09-14 17:35:32 +01:00
James Salter
a43f5507a3
Use a UUID instead of hashed user ID for tracking
...
Generate a UUID and save it to account data for cross device tracking.
2021-09-14 15:30:42 +01:00
James Salter
dc7aad1abf
Revert "Revert "Add support for Posthog Analytics under a labs flag""
...
This reverts commit c5ea253181
.
2021-08-03 11:55:02 +01:00
James Salter
c5ea253181
Revert "Add support for Posthog Analytics under a labs flag"
2021-08-03 07:30:02 +01:00
James Salter
2cee2b5fd6
Update comment
2021-08-02 12:26:18 +01:00
James Salter
4755a81403
Disable analytics when user hasn't opted in or out
2021-08-02 12:23:42 +01:00
James Salter
ce11e6c981
Update src/PosthogAnalytics.ts
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2021-08-02 11:45:49 +01:00
James Salter
cd2bc79b6b
Remove comment
2021-07-29 14:43:19 +01:00
James Salter
a1ffd240e1
Use .instance pattern
2021-07-29 14:40:18 +01:00
James Salter
07eaee25d2
Default properties to {} to avoid passing it superfluously for events with no properties
2021-07-28 17:54:35 +01:00
James Salter
7b4a7711b2
Declare return types for all public methods, even void ones
2021-07-28 17:20:22 +01:00
James Salter
0a951501b2
lint
2021-07-28 17:04:18 +01:00
James Salter
e5d36e9a81
Use arrow function instead of bind
2021-07-28 17:02:26 +01:00
James Salter
b1bd5f57a4
Document IEvent.properties, fix IWelcomeScreenLoad
...
IEvent.properties is a placeholder that needs to be overriden by extenders for type validation to take place.
IWelcomeScreenLoad should have had properties declared for it. Because it didn't, a faulty call using it was possible.
2021-07-28 16:43:13 +01:00
James Salter
13ef819ba6
isEnabled returns a boolean
2021-07-28 16:42:56 +01:00
James Salter
ce80e5a463
Remove superfluous unused argument
2021-07-28 14:44:28 +01:00
James Salter
279871ce01
Add types
2021-07-28 14:44:16 +01:00
James Salter
a687bab52f
Use readonly shorthand for posthog param
2021-07-28 14:38:41 +01:00
James Salter
60bc283455
Add return type to getRedactedCurrentLocation
2021-07-28 14:22:57 +01:00
James Salter
9420b81eeb
Rename mysterious _ to beforeFirstSlash
2021-07-28 14:22:32 +01:00
James Salter
da3bf5a097
rename knownScreens -> whitelistedScreens
2021-07-28 14:15:40 +01:00
James Salter
d5bef53f8b
Use snake case for feature name
2021-07-28 14:03:17 +01:00
James Salter
868d92781d
Add copyright header
2021-07-28 14:01:21 +01:00
James Salter
7c62386915
lint
2021-07-28 11:28:19 +01:00
James Salter
8ef18d0f9a
Add module level comment about anonymity behaviour
2021-07-28 11:03:40 +01:00
James Salter
c206127f68
Track screen name when tracking page view
2021-07-28 10:45:03 +01:00
James Salter
4048cb3c37
Default to Anonymous tracking when no OptIn setting is present
2021-07-28 10:20:16 +01:00
James Salter
a6df687196
Tidy up interface and add some comments
2021-07-28 09:54:37 +01:00
James Salter
1d81bdc6f9
Interface changes and anonymity fixes
2021-07-28 09:37:08 +01:00
James Salter
474561600e
Fix hash == ""
2021-07-27 13:31:56 +01:00
James Salter
5e0a397631
Refactor anonymity derivation
2021-07-23 17:58:31 +01:00
James Salter
95f4275807
Add Disabled anonymity, improve tests
2021-07-23 16:47:02 +01:00
James Salter
c34afdb4bd
Refactor platform properties loading
2021-07-21 18:35:25 +01:00
James Salter
585b702652
Add tip about shasum
2021-07-21 18:25:05 +01:00
James Salter
0c89eb51d4
add registerSuperProperties
2021-07-21 18:24:14 +01:00
James Salter
b380a89ac6
Fix wrong overriden attribute
2021-07-21 17:01:45 +01:00
James Salter
f358deb6c4
Manually track page views
2021-07-21 16:52:57 +01:00
James Salter
93962c0aca
Update reasoning around disabling capture_pageview
2021-07-21 16:29:11 +01:00
James Salter
53b6749f73
Change onboarding_login_begin to welcome_screen_load
2021-07-21 16:09:22 +01:00
James Salter
5697eeaab8
Put back accidentally removed anonymity update
2021-07-21 16:08:00 +01:00
James Salter
726b4497b2
Remove redactedCurrentLocation and rely on posthog for DNT
...
* Redact and pass the redacted url as a property. redactedCurrentLocation might have issues with concurrent events
* Remove DNT code and rely on posthog
2021-07-21 16:06:09 +01:00
James Salter
4c6b0d35ad
Improve analytics interface
...
* Make it an error to call it before its initialised, and separately track whether its been enabled
* Use anonmity enum in the public interface
* Properly await upstream calls
* Fix accidental test fixture cross-reliance
2021-07-21 14:58:43 +01:00