Search code examples
google-app-enginegoogle-cloud-platformgoogle-tag-managerserver-tags

tagging server "Server Error" when trying to deploy Server Tag


I'm trying to deploy manually GTM Server Container. I'm following this configuration guide from google:

https://developers.google.com/tag-manager/serverside/script-user-guide

Everything seems to be working fine however when trying to preview my container I have the following error

Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.

When I'm running the command in the cloud shell gcloud app logs read I have the following error Error: Failed to decode the container config.

Any idea? What can I do?


Solution

  • This might sound very obvious but if anyone if stuck the same way what you need to do is passing the Container Configuration code you get from the GTM interface to the Container config variable when setting up the server.