This guide will teach you, in simple steps, how to create a Google Tag Manager (GTM) account and container. Follow the steps precisely; this usually takes less than 10 minutes.
What is Google Tag Manager? GTM is a free tool from Google for managing marketing and analytics tags (such as Google Analytics 4, Google Ads, Meta Pixel, etc.) on your site without constantly having to modify the code.
1. Create a GTM Account and Container
- Go to tagmanager.google.com and log in with your Google account.
- Click “Create Account”.
- Fill in:
- Account Name: for example, your company name.
- Country: choose your country.
- Set up your container:
- Container Name: for example, your domain.
- Target Platform: “Web”.
- Click “Create” and accept the terms.
- Copy the two code snippets you are shown:
- Head script: this belongs in the HTML head.
- Body noscript: this belongs directly after the opening body tag.
- Leave this tab open so you can paste the snippets into WordPress.
- Tip: Your container ID looks like GTM-XXXXXXX. You can always find it later in GTM.
2. Add GTM to WordPress via Bricks Builder
- Log in to your WordPress dashboard.
- Go to Bricks > Settings.
- Open the “Custom Code” or “Templates & Scripts” tab (the name may vary slightly depending on the version).
- Paste the snippets in the correct places:
- Head script: in the “Header” or “Head scripts” field.
- Body noscript: in the “Body (opening)” or “Body start” field.
- Click “Save” or “Opslaan”.
- Are you using caching (plugin/server/CDN)? Clear the cache and reload your site.
Important:
- Make sure to paste the head script truly in the head, and the noscript block directly at the start of the body.
- Do not use another plugin or theme option that also places GTM; duplicate placement leads to measurement errors.
3. Check if GTM is Working (Recommended)
- Open your site in a new tab.
- In GTM, go to “Preview” in the top right.
- Enter your site URL and start debug mode.
- Tag Assistant will open; “Connected” should appear at the bottom.
- Do you see “Connected”? Then GTM is correctly installed via Bricks.
If you don’t get “Connected”:
- Remove any other GTM/Analytics injections to prevent duplicate code.
- Check if both snippets are in the correct places.
- Clear caches and try again.