Commit Graph

9 Commits (95f4275807ca3207f179288ae7cbde6352f61167)

Author SHA1 Message Date
James Salter 95f4275807 Add Disabled anonymity, improve tests 2021-07-23 16:47:02 +01:00
James Salter 6737cfd297 remove superflous dnt clear 2021-07-21 16:10:06 +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 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 3135e42586 Add test for silently ignoring messages when not initialised 2021-07-21 07:42:55 +01:00
James Salter 2a48d3c9bc First pass at a PosthogAnalytics class 2021-07-21 07:40:39 +01:00