Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

trackLink to rely on promises rather than a 300ms timeout #641

Open
bdavies6086 opened this issue Sep 24, 2020 · 1 comment
Open

trackLink to rely on promises rather than a 300ms timeout #641

bdavies6086 opened this issue Sep 24, 2020 · 1 comment

Comments

@bdavies6086
Copy link

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!

@pinksynth
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants