analytics.js
analytics.js copied to clipboard
trackLink to rely on promises rather than a 300ms timeout
Hi,
I was wondering if it would be possible to have trackLink make use of promises rather than waiting on a 300ms timeout? That way we can guarantee that our tracking request has been made and ensure we have navigated as early as possible.
I understand that currently analytics.js needs to be supported by IE11 but was wondering if a polyfill could be used for it?
Thanks!
I know this is an old-ish issue, but I am in need of the same functionality. It can even be callback based—we just need something to provide control so that we don't perform a hard refresh before the Segment event has been received. Is there a known way to accomplish this?