Google Tag Manager in Body

Hi,

Where can I add the Google Tag manager code for the body element? I know the custom header/ footer part but not for the body.

When I add the GTM code in the JS part of the page, it breaks the working of other JS functions.

So I’m definitely not any kind of expert with GTM but I was curious about what’s going on here - checked with ChatGPT and it seems like there are options for how and where to put GTM code. I’m not 100% sure but I think they both go in the custom header - just take out the noscript tags for the iframe part.