When multiple calls are triggered on a page, variables and events set with the first call are also being sent in the consecutive calls. How to ensure that variables and events do not prevail/persist beyond one analytics server call?
On a page, the state of the analytics object is not reset. Hence, if multiple calls are triggered they all use the same object. It results in consecutive calls sent with the same variables and events.
You can prevent it by using any of the following approaches (as applicable):