Simple tracking testing with Google Tag Manager Environments

Written by

Mykhailo Zernov

Published Jun 23, 2026 comments

Key takeaways

Using GTM Environments for server-side tracking with Stape

Benefits of GTM Environments

How to use Custom Loader with GTM Environments

Get your environment parameters.
Get your environment parameters.
Get your environment parameters.
Add the environment parameters to the body snippet.
<noscript><iframe src="https://your-subdomain.stape.work/ns.html?id=GTM-XXXXXX&gtm_auth=XXXX&gtm_preview=env-N&gtm_cookies_win=x" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

How to test the configuration

  1. 1.
  2. 2.
  3. 3.
  4. 4.
Network tab

Example use case

Conclusion

Written by

Mykhailo Zernov

Content writer

Technical Writer and Content Manager with 10 years of experience. Helps businesses navigate tracking technologies and translates complex technical concepts into clear, actionable insights and guides.

Was this article helpful?

Comments

Recommended for you

Turn better tracking into better marketing performance

Try for free