By doing so, the duration of an event is recorded as 0. Right??
Let’s say I have two events:
Event A: a page view event that I want to track with a duration
Event B: a button click event on that page
In my implementation, I trigger the events in this order:
timeEvent('A');
track('B');
track('A');
And the order of events is recorded as B -> A(with duration). But, I want to track the events by order of A(with duration) -> B . Is there any other ways to acheive this? If not, that's okay. I'll modify a code to adjust the sequence of order.
Thank you for your help, Ansh! It was very helpful for me.