Gatsby: Let gatsby-plugin-google-tagmanager accept optional "environment" params

Created on 19 Apr 2018  路  5Comments  路  Source: gatsbyjs/gatsby

Description

Currently gatsby-plugin-google-tagmanager accepts the GTM container ID and the "includeInDevelopment" flag. However, for projects that leverage GTM environments there are two more params that need to get sent with the ID, namely "gtm_auth" and "gtm_preview".

Can we add the ability to optionally pass in those two params? I needed it for a project and think it might be an enhancement to the plugin others could benefit from too.

Links

help wanted

Most helpful comment

CONTRIBUTING.md applies to entire repository. Would love if gatsby would be your first OSS contribution! :)

All 5 comments

That sounds like a reasonable addition! I've marked this up as _help wanted_.

Nice! I'm willing to work on this though am not sure if what's outlined in CONTRIBUTING.md applies to plugins as well. I've been looking for an opportunity to contribute for the first time to OSS and would love for this to be it if possible!

CONTRIBUTING.md applies to entire repository. Would love if gatsby would be your first OSS contribution! :)

Seems to be fixed via #5067 and thus should be closed, I guess.

Closed with #5067

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

brandonmp picture brandonmp  路  3Comments

kalinchernev picture kalinchernev  路  3Comments

dustinhorton picture dustinhorton  路  3Comments

hobochild picture hobochild  路  3Comments