Custom GTM Loader for Server-Side Tagging

Last updated: 2 September 2021. Added details about how Preview containers won’t work if you override the Container ID. While server-side tagging already has a wonderful built-in Client for proxying the Google Tag Manager container via your own first-party domain, it’s not perfect. The main issues are that it doesn’t let you delimit access on a per-origin basis, so requests for the allowlisted container IDs can be sent from anywhere, and that it doesn’t let you freely choose the path via which the container ID is loaded. Read More…