Enrich Session Data with Server API
Hei everyone,
We currently have a react frontend which sends tracking data to FullStory.
However, the implementation was done by some agency and we are not very satisfied with the status quo and we would like to improve on it a bit by creating an REST API service which could receive userData from the frontend and enrich sessions created in the fullstory with some more properties, such as userRole and so on.
My question is, is there any possibility to update a session captured by the frontend via the Server API by matching some how the session id and then, enrich the session object with some more data?
if yes, which endpoint should I use and what unique identifier needs to be used as well?
The reason why we want a server-side service is because we have another tracking system in place and we would like to build a module in-between them so that we abstract most of the business logic.
Comments
1 comment
Hey @Vlad Nec! Welcome to the Community! I’m glad you reached out! 😊
Yes! With the V2 API, you can send a server API call for events and attach them to the session with the session ID.
You’d use this endpoint here, which has some example calls to see how: https://developer.fullstory.com/server/events/create-event/.
Please let me know if you have any other questions! I’m also happy to create a support ticket on your behalf if you want more help setting this up.
Please sign in to leave a comment.