i'm struggling to find the best way to calculate the time customer spend between payment page & confirmation page. From Payment page after entering the Payment mode we take customer to Payment Gateway(external domain) and upon confirmation brings customer back to Confirmation page.
now i want to see how much time its taking for customer in Payment Gateway for any payment mode.
Not sure if there is a (calculated) metric that you can use to get this.
However, from implementation perspective, you could set a cookie with the current time stored in it and when the user returns, check for the cookie and calculate the difference in time.
Not sure if there is a (calculated) metric that you can use to get this.
However, from implementation perspective, you could set a cookie with the current time stored in it and when the user returns, check for the cookie and calculate the difference in time.