xyNNN / GoogleTagManagerBundle

Google Tag Manager Bundle for Symfony 2
https://github.com/xyNNN/GoogleTagManagerBundle
GNU Lesser General Public License v3.0
27 stars 15 forks source link

Support for multiple environments #41

Closed chrs-myrs closed 3 years ago

chrs-myrs commented 3 years ago

It's a great extension, but missing one key thing that we need, the support for multiple tag manager environments. I'd like to allign these with our test/staging environments.

Essentially these environments are signalled by adding some parameters to the URLs in both the header and footer. I wonder if we could set these somehow in the config so that they can be passed from environment variables.

&gtm_auth=&gtm_preview=env-33&gtm_cookies_win=x

Perhaps just a section for additional URL parameters so that it isn't tied to the current implementation?

chrs-myrs commented 3 years ago

https://github.com/xyNNN/GoogleTagManagerBundle/pull/42/files

xyNNN commented 3 years ago

Thank you very much for your pull request! I will give you ASAP feedback.

xyNNN commented 3 years ago

Fixed by https://github.com/xyNNN/GoogleTagManagerBundle/releases/tag/3.1.0