-
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): enable more options. #15280
feat(gatsby-plugin-google-analytics): enable more options. #15280
Conversation
This included breaking out `knownOptions` into three factions: - createOnly - general - aLaCarte All options are from general, but I did not add all of the general options because a few do not work in a set-it-and-forget-it kinda way. Added some tests.
Would it be possible for someone that has the privileges to re-run the |
Looks like it passed :) Thanks fam. 👍 |
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.
This looks really great! Thank you for updating! I added a small comment about the a la carte option.
forceSSL: `boolean`, | ||
transport: `string`, | ||
}, | ||
aLaCarte: { |
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.
could you elaborate on why this is added? I can't seem to find this being used in your changes?
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.
Absolutely! Good question 👍
The aLaCarte
section is for options that are not directly from the Google Analytics API/docs, but rather options specific to this Gatsby Plugin.
The GA docs/API break all options into sections such as create only
and general
. The anonymize
option is not a Google Analytics option (not to be confused with the very similar GA-official option anonymizeIp
), thus doesn't fit in with any of the other sections.
Upon further contemplation, the name is kind of vague. Thus I will be renaming the section to pluginSpecific
and adding a comment to clarify what the section is for. 🔥
functional purpose.
Quick update @wardpeet! I decided too get rid of the Feel free to let me know if you see anything else! 🙏 |
I am not really sure what the ENOAUDIT message is. 😅 Is this something I broke and can fix on my end? |
…l-options-to-gatsby-plugin-google-analytics
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.
Looks good, thank you! 😄
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.
Oh i never merged this one 🤦♂. Sorry about that, this looks great! 👍 thanks for taking the time!
Holy buckets, @tinder-kyleboss — we just merged your PR to Gatsby! 💪💜 Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! |
Successfully published:
|
Hi, I don't know if it's relevant to this PR but after bumping the google analytics plugin last night, the google analytics ssr output is broken : It didn't close the You can reproduce it on this branch : https://github.com/flegall/florent-legall-dot-com/tree/google_analytics_ssr_issue : |
…15280) gatsbyjs@b3ed9be had a syntax error where, after transpiling the javascript, users are given a syntax error. There was an if-statement which ends up not being closed. This commit fixes that.
Nice ! Most of the reporting work was actually done by renovate & cypress ! I'm receiving PRs for my website from renovate (that get merged automatically if they pass). It could have gone unnoticed though, as the whole site was working. |
Description
More options for gatsby-plugin-google-analytics
🥁The new options are🥁
allowAdFeature
dataSource
queueTime
forceSSL
transport
Implementation details
This included breaking out
knownOptions
intothreetwo factions:- aLaCarte❤️ Complete with tests ❤️
Related Issues
#15168