You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Google Analytics plugin should have configurable delay before sending Page View #15504
To build on the fix for #9139 in #10917, we need to support an optional configurable delay before invoking sendPageView for sites that have custom page transitions. (An example plugin: gatsby-plugin-transition-link).
I can probably make this change in the code, but I wanted to see if anyone else had thoughts on this (e.g. the naming of the option).
With page transitions, such as when using the plugin linked above, the next route can be mounted after an arbitrary delay, so the current requestAnimationFrame/setTimeout in onRouteUpdate will need to be replaced with a user-configured delay in this case.
Activity
Simon-Tang commentedon Jul 12, 2019
Fixed in #15610
feat(gatsby-plugin-google-gtag): Add `delayOnRouteUpdate` option (#37017
feat(gatsby-plugin-google-gtag): Add `delayOnRouteUpdate` option (gat…