Why did the container ID generate a lot of errors?
Updated Nov 30, 2026
Container ID errors most likely come from one of these causes:
1. Server container ID used in the Custom Loader (403).
The Custom Loader power-up needs the web GTM container ID, not the server one.
Fix: Open the sGTM container → Power-ups → Custom Loader, and put the web ID in the Web GTM ID field. Save and update the GTM install script on the site. Learn more about the Custom Loader power-up.
2. Web GTM container not published (403 errors).
Fix: Publish the initial version of the web GTM container so it is live.
3. Container config not found (404 on incoming requests).
The container is unpublished, deleted, or has the wrong container ID configured on Stape.
Fix: Check that the GTM container exists and is published, and that the container ID on Stape matches the GTM container. Learn more in our status codes article.
4. Malformed Stape container identifier on API requests.
stape-core-api reads the container ID from the X-Gtm-Identifier header and accepts only exactly 8 lowercase letters. Anything else is logged as "invalid container ID" and returned as "container not found".
Fix: Check for typos, spaces, wrong case, or a GTM-XXXXXX ID in the X-Gtm-Identifier header.
Was this article helpful?
Comments