Quick answer: To set up Google Tag Manager, go to tagmanager.google.com, click Create account, enter an account name, country and your website as the container name, choose Web and accept the terms. Copy the two code snippets: paste the first high in the head of every page and the second right after the opening body tag. Then test with Preview and click Submit to publish.
Google Tag Manager lets you add and manage tracking tags, such as Google Analytics, Google Ads and the Meta Pixel, without editing your website code each time. You install it once, then manage every tag from one dashboard.
Prefer to watch? The 3-minute video above shows every step on screen.
What do you need before installing Tag Manager?
- A Google account.
- Access to your website’s code or admin area, such as WordPress or Shopify.
- Your website URL.
How to set up Google Tag Manager (step by step)
Step 1: Create a Tag Manager account
Go to tagmanager.google.com and click Create account. Enter your business name as the account name and select your country.
Step 2: Create a container
Enter your website domain as the container name, choose Web as the target platform, click Create and accept the terms of service.
Step 3: Copy the installation code
A window shows two snippets. You can reopen it any time by clicking your container ID (it starts with GTM-) at the top of the workspace.
- The first snippet goes as high in the
<head>of every page as possible. - The second snippet goes immediately after the opening
<body>tag.
Step 4: Add the code to your website
Paste the snippets into your site’s theme or header settings. On WordPress, you can use a header and footer code plugin or a plugin that asks only for your GTM ID. Many website builders have a field for a Google Tag Manager ID.
Step 5: Test with Preview mode
Back in Tag Manager, click Preview, enter your website URL and click Connect. If Tag Assistant says it is connected, the code is installed correctly.
Step 6: Publish the container
Click Submit, add a version name such as “Initial setup”, and click Publish. Now you can add tags like Google Analytics.
Tag Manager not working? Common problems and fixes
Tag Assistant can’t connect to my site
Check that the code is on the live site, clear your website cache, and disable ad blockers in the browser. View the page source and search for your GTM- ID.
The code is on some pages but not others
Add the snippets to your site’s global header and body template, not a single page, so every page loads them.
Tags fire twice
You may have the same tracking code hard coded on the site and inside Tag Manager. Remove the duplicate so each tag runs only through GTM.
What should you do next?
- Set up Google Ads conversion tracking using Tag Manager.
- Share Google Tag Manager admin access with your team.
- Create Google Analytics and connect it to WordPress.
Frequently asked questions
Yes. The standard version of Google Tag Manager is free to use.
Yes. Tag Manager only installs and manages tags. Google Analytics is the tool that collects and reports the data.
Often yes. Many WordPress plugins and website builders let you paste just your GTM container ID, and they add the code for you.
Changes only go live after you click Submit and publish a new version of the container.
Want more step-by-step tutorials? Subscribe to Digital Growth Tutor on YouTube for short, no-jargon guides.

