When we are trying to implement an 'Event Tracking' mechanism (recording/logging clicks, scrolls and other actions on the UI of the web application) on our web application.
Should 'Event Tracking' be tied to a session? I noticed that a lot of Event Tracking endpoints allow their users to intercept the request and freely change the content (userId, eventTime and etc.). Being able to freely change the content would allow attackers to alter the Event Tracking data, which would produce inaccurate data for the internal team right?
Should developers perform a check whether the userID is the same as the user currently issuing the request first?