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?
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.