Closed paulpartington-cti closed 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.
Sorry for this. I completely missed this PR. Merging right now, because the code seems solid! Thanks!
Version 1.5.0 now includes this feature.
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
andgtm_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/