[gatsby-plugin-google-gtag] - Add 'includeInDevelopment' flag in options. #29871
Unanswered
abohannon
asked this question in
Ideas / Feature Requests
Replies: 1 comment
-
@abohannon I need this as well. Can you please share your solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Allows gtag to be loaded in development. Currently, it is only loaded in production.
Basic example
Add an
includeInDevelopment
flag similar togatsby-plugin-google-tagmanager
.Motivation
We're currently revamping our entire analytics architecture at work which is fairly complex and need to test events locally before deploying to production. Allowing gtag to load in development will help tremendously and save us from needing to build every time we want to test.
We're currently using a modified fork of this plugin with the
includeInDevelopment
flag added. I'm happy to submit a PR if the community thinks this is a valuable contribution.Beta Was this translation helpful? Give feedback.
All reactions