We have a web application and we are trying to link both client/server side events into sessions.
At the same time, we are using Segment as a data source for the Amplitude.
What we are trying to achieve is a similar to the default behavior: link all events happened within less than 30 minutes delay.
For this purpose, it is necessary to generate the session Id on the server, and pass it to the client for the further usage. And to track the last event time for the 30 minutes tracking.
One of solutions is to use cookies with the expiration time and track it both on server and client side.
- is there is a more straightforward solution for this quite standard procedure?
- are there best practices to synchronize events order on client/server side?