Commit cf6d0b9
committed
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 #32961 parent 7e60bbb commit cf6d0b9
4 files changed
Lines changed: 547 additions & 0 deletions
File tree
- modules
- analytics
- tests
- auth/controllers
- organizations/controllers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
16 | 25 | | |
0 commit comments