-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gatsby-plugin-google-analytics): Add pageTransitionDelay option #15610
feat(gatsby-plugin-google-analytics): Add pageTransitionDelay option #15610
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! I added a few changes to make things a bit more simple.
Nothing special, just a bit of cleanup 💪
packages/gatsby-plugin-google-analytics/src/__tests__/gatsby-browser.js
Outdated
Show resolved
Hide resolved
packages/gatsby-plugin-google-analytics/src/__tests__/gatsby-browser.js
Outdated
Show resolved
Hide resolved
wrong button :'( should have pushed comment
Co-Authored-By: Ward Peeters <ward@coding-tech.com>
Good catches @wardpeet, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! <3 Also 💯 on the written tests! We love tests 😄
fixed in |
Description
Adds a
pageTransitionDelay
option togatsby-plugin-google-analytics
to delay the "Page View" event when necessary for page transitions.Related Issues
#15504 - contains more context.