Custom loader for QA environment in GTM web?

How can I use custom loader to load different GTM web container environments?
In default GTM loader, we specify gtm_preview query parameter with values like env-1, and combined with gtm_auth and gtm_cookies_win params as generated by GTM.

I don’t see any documentation on this for Stape’s custom loader.

You can add these parameters to the custom loader snippet after the i parameter, here is an example without envs params:

And here is with env params

1 Like