Commit 7a24d2a
authored
feat(analytics): identify + groupIdentify on auth/org events (#3306)
* feat(analytics): identify + groupIdentify on auth/org events
Add analytics tracking calls to auth and organization flows:
- identify on signup (email, name, provider) and signin (email, name, lastLoginAt)
- groupIdentify on org create (name, createdAt) and org update (name)
- groupIdentify on billing plan.changed event (plan)
All calls are wrapped in try/catch to never break the main flow.
Closes #3296
* fix(analytics): await async init and mock middleware in identify tests1 parent 723ba4a commit 7a24d2a
4 files changed
Lines changed: 552 additions & 0 deletions
File tree
- modules
- analytics
- tests
- auth/controllers
- organizations/controllers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
0 commit comments