There is a website with Amplitude JS SDK installed. Hits are being sent to my custom server and then redirected to the amplitude. To do so I’ve set ApiEndpoint parameter for init method.
The thing is, when I fire a few events one by one, each hit contains data about the event it was fired by and all the previous events within current page load (if the page is reloaded it starts from the beginning again)
For example, I fire the first event “Click button”, payload contains only data about this event. Then I click one more time, so “Click button” fires again. In this case payload contains info about the first “Click button” and the previous click and so on. If there are 50 events, last payload would contains all of them.
What could be a cause of this issue?