Skip to content
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

Environment specific Google Analytics IDs and/or Google Tag Manager IDs #50

Open
shaunhurley opened this issue May 3, 2021 · 1 comment · May be fixed by #51
Open

Environment specific Google Analytics IDs and/or Google Tag Manager IDs #50

shaunhurley opened this issue May 3, 2021 · 1 comment · May be fixed by #51

Comments

@shaunhurley
Copy link

The problem to solve

We like to test Google Tag Manager configurations in our dev/test environments (in conjunction with a GTM test container and test GA Property) prior to implementing in our production site.

Currently enabling Google Fields via the seoGoogleFields: true directive enables the fields becoming available in the Global menu option, meaning that they are stored in the database. Any synching of the database between environments will overwrite alternate configs in the target environment, risking polluting production analytics with development data (when the production IDs get used in a dev setting), and require a manual intervention to update with the correct IDs.

Proposed solution

Providing overrides in the local.js, a la baseURL and similar settings, to configure the appropriate Google IDs rather then using manually configured settings via the Admin menu tab.

Alternatives

Manual maintenance of environments.

@shaunhurley shaunhurley added the enhancement New feature or request label May 3, 2021
@abea abea added help wanted enhancement and removed enhancement New feature or request labels May 4, 2021
@abea
Copy link
Contributor

abea commented May 4, 2021

That sounds like a good idea. We'd appreciate a PR to add this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants