yireo-magento1 / Yireo_GoogleTagManager

Implement Google Tag Manager in Magento 1 (deprecated)
Open Software License 3.0
56 stars 46 forks source link

Google Tag Manager Environments #90

Closed paulpartington-cti closed 5 years ago

paulpartington-cti commented 6 years ago

Google Tag Manager has introduced a feature that allows for a single GTM account to be contain multiple environments. This allows for a container to be previewed on one environment before being pushed to another all in a single account.

To allow this, we need to include gtm_auth and gtm_preview parameters on the request.

This change creates three new configuration options:

If "Enable Environments" is set to "Yes" then the values of GTM Auth and GTM Preview will be included.

More information can be found here - https://www.periscopix.co.uk/blog/a-revolution-of-multi-server-testing-by-google-tag-manager-environments/

ajbonner commented 5 years ago

@yireo this is a really handy change and one I was about to write myself. Could we get some feedback on this PR and / or merge?

I'm happy to take on whatever work is still necessary if @paulpartington-cti doesn't have time right now.

jissereitsma commented 5 years ago

Sorry for this. I completely missed this PR. Merging right now, because the code seems solid! Thanks!

jissereitsma commented 5 years ago

Version 1.5.0 now includes this feature.