Reputation: 33
I have two environments, dev and production(prd), and I have a google tag manager container for each environment.
When I deploy a new version in production, I also need to deploy the new tags from dev to prd container.
Is it possible to export and import a container remotely in google tag manager?
I use Jenkins to build and deploy new versions, I would like to start a pipeline flow in jenkins to deploy the dev environment tags to production environment automaticaly.
Upvotes: 1
Views: 1146
Reputation: 32760
No, not really, unless you are happy to store them as individual tags/triggers/variables and import them separately via the API. Whole containers cannot be imported via the API. I know that Simo (Ahava, of GTM tools fame) has a long standing feature request to add container imports to the API, but as of yet that hasn't happened.
(I am sure you could build a convoluted solution with a browser automation tool to emulate the manual import process, but I refuse to take this serious as a possibility.
Upvotes: 1