amplitude / Amplitude-JavaScript

JavaScript SDK for Amplitude
MIT License
315 stars 132 forks source link

Amplitude With userid no any event reporting #603

Closed arianshirepublik closed 1 year ago

arianshirepublik commented 1 year ago

When we use "amplitude-js": "8.21.2" for web tracking

We tracked the createProfiled of users, but found that some users only had userids and did not report any events.

image image

Related Tracking Properties Total Events Total Sessions First Seen Last Seen All "-"

Environment

justin-fiedler commented 1 year ago

Hi @arianshirepublik thanks for using Amplitude.

The Event Explorer and User Lookup tools only show "Events", not "Identify" operations. The state you described is possible if the user is only tracked with identify() or setUserId() calls which will dispatch an Identify to the server with the user identity updates (user_id, user_properties).

You can view user_properties on Events in the User Lookup, but they represent the current User state (from the server) applied to an Event at the time it was received.

More details here: https://www.docs.developers.amplitude.com/data/sdks/typescript-browser/#user-properties

Note, this is different than how Events and Identify's appear in the Chrome Extension, which instead shows the content of client requests to the server and includes both Event's and Identify's. https://chrome.google.com/webstore/detail/amplitude-event-explorer/acehfjhnmhbmgkedjmjlobpgdicnhkbp

Hope this helps!