# Google Tag Manager (Body)

> Adds the Google Tag Manager noscript fallback right after the opening body tag. Use it together with the GTM head snippet.

- Type: HTML
- Runs: Site-wide body
- Category: [Analytics & Tracking](https://wpide.com/library/category/analytics/)
- Tags: analytics, google-tag-manager, gtm, tracking
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/google-tag-manager-body/

## Code

```html
<!-- Google Tag Manager (noscript). Replace GTM-XXXXXXX with your container ID. -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
```

## Notes

Your theme must call wp_body_open() for this location to work.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Google Tag Manager (Body)" in its snippet library and add it in one click; or create a new HTML snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
