{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4585a721-8d85-4ccd-802e-36475e11f2f2",
    "slug": "gtm-server-tagging",
    "name": "GTM Server Tagging",
    "description": "Deploy and Host GTM Server Tagging on Railway",
    "url": "https://railway.com/deploy/gtm-server-tagging",
    "upstream": {
      "repo_url": "https://github.com/serkanhaslak/gtm-cloud-image"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "preview",
      "source": {
        "repo": "https://github.com/serkanhaslak/gtm-cloud-image"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "server-side-tracking",
      "source": {
        "repo": "https://github.com/serkanhaslak/gtm-cloud-image"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "preview",
      "description": "This container doesn't need custom domain. Use railway public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONTAINER_CONFIG",
      "service": "preview",
      "description": "Provide a value for CONTAINER_CONFIG.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RUN_AS_PREVIEW_SERVER",
      "service": "preview",
      "description": "Provide a value for RUN_AS_PREVIEW_SERVER.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "server-side-tracking",
      "description": "Set port 8080 on your custom domain",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "CONTAINER_CONFIG",
      "service": "server-side-tracking",
      "description": "Get this Config Key from your server GTM Container",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "PREVIEW_SERVER_URL",
      "service": "server-side-tracking",
      "description": "Provide a value for PREVIEW_SERVER_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gtm-server-tagging"
      }
    },
    "cli": "railway deploy --template gtm-server-tagging",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4585a721-8d85-4ccd-802e-36475e11f2f2",
            "serializedConfig": {
              "services": {
                "5a54aaca-4909-4eae-99ca-4e52ece6e6f4": {
                  "icon": "https://www.svgrepo.com/show/353827/google-tag-manager.svg",
                  "name": "preview",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/serkanhaslak/gtm-cloud-image",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "This container doesn't need custom domain. Use railway public domain.",
                      "defaultValue": "${{server-side-tracking.PORT}}"
                    },
                    "CONTAINER_CONFIG": {
                      "isOptional": false,
                      "defaultValue": "${{server-side-tracking.CONTAINER_CONFIG}}"
                    },
                    "RUN_AS_PREVIEW_SERVER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "f0195ba9-a5a0-4a87-a2d4-aa11ddd7837b": {
                  "icon": "https://www.svgrepo.com/show/353827/google-tag-manager.svg",
                  "name": "server-side-tracking",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/serkanhaslak/gtm-cloud-image",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Set port 8080 on your custom domain",
                      "defaultValue": "8080"
                    },
                    "CONTAINER_CONFIG": {
                      "isOptional": false,
                      "description": "Get this Config Key from your server GTM Container",
                      "defaultValue": "{{CONTAINER_CONFIG}}"
                    },
                    "PREVIEW_SERVER_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://${{preview.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
