gatsby-plugin-segment-js
gatsby-plugin-segment-js copied to clipboard
Change functionality of delayLoad?
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.