Repository navigation
Commit e2ae6dc
committed
Fix: Initialize tracker with default 'anonymous' userID to prevent silent event drops
The Tracker was initializing with an empty userID, causing Amplitude SDK
to silently drop all events that didn't have a customer ID resolved
(skipAuth commands, failed resolveCustomerID calls, and error events).
Amplitude Go SDK requires at least 5 characters for UserID or DeviceID.
Events with both empty are rejected during validation but the rejection
is invisible in production due to silentLogger.
This change ensures all events have a valid userID by defaulting to
'anonymous', which is overridden when SetUserID is called with the
actual customer ID for authenticated commands.1 parent 6d78161 commit e2ae6dc
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
0 commit comments