Run code after _satellite.pagebottom or _satellite.track are completed in callback or Promise
Hello,
I was wondering if it is possible to run any code after the async functions _satellite.pagebottom or _satellite.track are complete. We need to navigate user to another page and as I saw running a rule with _satellite.track is making async http requests. Obviously if I just add window.replace after _satellite.track it will cancel those requests and rule would not be executed. What we need is either some kind of callback in _satellite.track function or for it to return a Promise (currently it returns undefined). Right now I am relying on setTimeout and hoping that _satellite.track will finish within the number of seconds set in setTimeout but that is very ugly and hack solution. We need callback or Promise that will assure us that _satellite.track is complete.
Please advise. Thank you.
Best regards,
Goran Blazin
Sprinting Software