Hi, all. I'm using Pixel API to track customer eve...
# support
b
Hi, all. I'm using Pixel API to track customer events according to the docs https://www.rudderstack.com/docs/api/pixel-api-spec/. I can't see the sessionId and sessionStart in the context data. I want to know how sessions are tracked when using the Pixel API.
h
Have you tried adding context.sessionId and context.sessionStart to the querystring
b
Yes, I added the context.sessionId to the queryString. I got the sessionId with rudderanalytics.getSessionId() method. But not every event can fetch the sessionId, which causes my session number to be much lower. Also, if I want to get the sessionStart, I can only determine by the sessionId. Is there any way I can get the value of the data object fetched by the JS SDK when using the Pixel API?