Commit graph

63 commits

Author SHA1 Message Date
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
James Salter
6da3cc8ca1 Redact sensitive data 2021-07-21 13:48:10 +01:00
James Salter
7e549f84e7 Don't make getAnalytics the default export, its weird 2021-07-21 11:23:55 +01:00
James Salter
d9594c428a login event should be IAnonymousEvent 2021-07-21 11:23:42 +01:00
James Salter
678474c0e8 Fix missing underscore 2021-07-21 11:23:18 +01:00
James Salter
b5564a0de0 Add getAnalytics helper 2021-07-21 08:42:29 +01:00
James Salter
4b0cb409a0 Add identifyUser 2021-07-21 08:38:58 +01:00
James Salter
74b0e52f9a Enforce anon/pseudo-anon via types 2021-07-21 08:23:42 +01:00
James Salter
d4550c1a28 Remove console logging 2021-07-21 07:42:44 +01:00
James Salter
2a48d3c9bc First pass at a PosthogAnalytics class 2021-07-21 07:40:39 +01:00