gatsby-plugin-segment-js icon indicating copy to clipboard operation
gatsby-plugin-segment-js copied to clipboard

Change functionality of delayLoad?

Open abohannon opened this issue 3 years ago • 4 comments

Out of curiosity, was there a particular reason scroll and route changes were chosen as triggers for script load? My usecase needs to delay the load of the script for performance reasons, but an idle pageview is still valuable to us to accurately assess bounce rates.

Is it worth creating an option to listen to load instead of scroll? If so, I'm happy to submit a PR if the community thinks it would be useful.

abohannon avatar Oct 30 '20 20:10 abohannon