analytics.js icon indicating copy to clipboard operation
analytics.js copied to clipboard

trackLink to rely on promises rather than a 300ms timeout

Open bdavies6086 opened this issue 5 years ago • 1 comments

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!

bdavies6086 avatar Sep 24 '20 11:09 bdavies6086

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?

pinksynth avatar Jul 29 '21 15:07 pinksynth