Skip to main content
Question

Not show sessions in User Sessions


I have a collection of events associated with session_id.

However, when selecting the UserSessions tab, no sessions are displayed. I have attempted to view both events performed within sessions and standalone sessions.
 


 

4 replies

What did I do wrong?
help, please


Larkin Barnard-Bahn
Team Member
Forum|alt.badge.img+1

Hi Ruslan! Are you sending IDs as milliseconds since epoch? If you’re using the HTTP API, make sure that it is correctly formatted. From the help center:

Session IDs for events sent via the Amplitude SDKs are automatically generated and managed. However, for events sent via the HTTP API, Amplitude defaults to a session ID of -1. This means the event is excluded from all session metrics. 


Larkin Barnard-Bahn wrote:

Hi Ruslan! Are you sending IDs as milliseconds since epoch? If you’re using the HTTP API, make sure that it is correctly formatted. From the help center:

Session IDs for events sent via the Amplitude SDKs are automatically generated and managed. However, for events sent via the HTTP API, Amplitude defaults to a session ID of -1. This means the event is excluded from all session metrics. 

Here is my request in Amplitude

Did I understand correctly, do I need to add the “time” key in milliseconds?
Thanks for the help


Larkin Barnard-Bahn
Team Member
Forum|alt.badge.img+1

It looks like all your Session IDs are coming in as -1, so I’d recommend double checking that your code is setting a unique Session ID for each session because it looks like Amplitude is setting them to the default -1, which will exclude the event from session metrics.  


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings