Oct 1, 2026
Written by
Uliana Lesiv
Google Tag Manager is a powerful tool for managing all your tracking tags in one place — whether you're running a basic web setup or a more advanced server-side configuration. If you're wondering how to set up Google Tag Manager, getting started comes down to a few straightforward steps. You can set up Google Tag Manager in 5 minutes for a basic web container:
tagmanager.google.com and create a GTM account and container.The full detailed Google Tag Manager setup guide, with step-by-step instructions for both web and server containers, is available further in this article. And if you're looking to speed things up, also check out the Setup Wizard, a free tool developed by Stape that automatically adds pre-built tracking templates to your GTM containers based on the platforms you select.
GTM is installed. So why is data still missing?
Sign up for Stape and add a server container on top of your web GTM to control what reaches analytics and ad platforms.
Google Tag Manager (GTM) is a tag management solution developed by Google that makes it easier to handle tracking codes on your website. It allows you to manage all your tags in one centralized interface – whether you are deploying standard analytics tags, ad pixels, or integrations like the Bing Conversion API. Using GTM eliminates the need for adding code manually to your website's HTML, making it simpler to manage the data tracking process, including knowing how to delete Google tags you no longer need alongside adding new ones.
Below is a walkthrough of how to set up Google Tag Manager for both web and server containers.
1. Go to Google Tag Manager and sign in to your Google account.
2. In the tab Accounts, click Create account.

3. Add a name for the account, choose the country location for it, name the container, and select the target platform (in this case, it is web). Click Create.

4. Accept data processing terms.

5. Install Google Tag Manager on your website according to the given instructions.

Please note: The GTM code snippet must be placed into every page of your website. It can be done manually, but it takes too much time if you have a lot of pages. Once the container is live, follow best practices for Google Tag Manager to keep it organized from the start. You can use plugins on the marketplace of the CMS you use or one of Stape's apps. They are primarily aimed at configuring server-side tracking, but with their help, you can also add a GTM snippet automatically:
To configure the server GTM container, you will need:
Compared to the web container, server-side Google Tag Manager setup is more complex. It includes the following steps:
We have a comprehensive guide on server GTM container configuration. In this article, we will briefly describe the steps. For the detailed instructions, please refer to that guide.
The table below compares the two ways of handling Google Tag Manager setup on a website.
| Manual setup | Plugin/app setup | |
|---|---|---|
| How it works | GTM snippets are added directly to the website's source code | A CMS plugin or app adds the GTM snippet automatically to every page |
| Technical knowledge required | Requires access to and familiarity with the site's code | Minimal, managed through the CMS admin panel |
| Time to implement | Longer, especially on large sites with many pages | Fast a few clicks after plugin installation |
| Risk of errors | Higher, snippets can be misplaced or applied inconsistently | Lower, the plugin handles placement consistently across all pages |
| Suitable for | Developers and technically experienced users | Beginners and non-technical users |
| Compatibility | Any website | Requires a supported CMS (WordPress, Shopify, Magento 2, BigCommerce, Wix, PrestaShop, Salla) |
| Maintenance | Manual updates if the snippet needs to change | Plugin handles updates automatically |
💡 Configuring tags for multiple platforms can be time-consuming. The Setup Wizard is a free Stape tool that automatically generates and imports pre-built GTM templates based on the platforms you select, all without touching a single line of code. It works with the most popular CMS platforms and supports Google Analytics 4, Google Ads, Meta, TikTok, LinkedIn, and more. Check out our guide on how to set up the Setup Wizard to get started.
Knowing how to set up Google Tag Manager is only part of the work. A container that is installed incorrectly loads on some pages only, loads twice, or does not load at all, and the data in GA4 and ad platforms becomes incomplete or duplicated. Check the GTM setup before publishing the container and again after each website change.
| Mistake | What happens | How to fix |
|---|---|---|
| Wrong container ID in the snippet | Preview does not connect or shows no events. | Compare the GTM-XXXXXX ID in the page source with the ID of the container you edit. Confirm that staging and production use the intended containers. |
| Snippet missing on some pages | Tags fire only on pages that contain the snippet. | Add the snippet to every page template. Check each page type separately, such as product, category, blog, landing, and checkout pages. |
| Only one part of the snippet installed or placed incorrectly | The container does not load, or the <noscript> fallback is missing. | Place the <script> code in the <head> and the <noscript> code immediately after the opening <body> tag. |
| Duplicate installation | The same container loads twice, or GA4 runs through GTM and directly in the website code. This creates duplicate page views and conversions. | Look for more than one gtm.js request in the page source and the Network tab (outside Preview mode). Remove the extra snippet from the theme files, plugin, or app. |
| Container not published | Changes tested in Preview are not live on the website. | Submit and publish the version with a clear name and description. |
| Server container ID used instead of the web container ID in Custom Loader | A 403 error appears when you open the server container URL. | In your Stape account, open the sGTM container and set the Web GTM ID field in Code & Setup information to the web container ID. Save the change and update the script that installs GTM on the site. |
| Consent settings block tags | Tags do not fire before or after the visitor makes a consent choice. | Open the Consent tab in Preview and check the consent state for each event. See also the first-touch issue with tags not firing. |
| Trigger conditions or variable names do not match the data | The tag appears under Tags Not Fired, or a variable shows undefined. | Open the event in Preview and review Tags Not Fired for the failed condition. Match variable names to the data layer keys (they are case-sensitive). |
| Tag fires more than once | The same event is counted twice. | Check the event timeline for repeated pushes or several triggers on the same tag. Use trigger filters or blocking triggers. |
For more cases, see our guide to common Google Tag Manager errors and mistakes.
<script> code is in the <head>, the <noscript> code is right after the opening <body> tag, and the container ID is correct. Repeat for each page template.gtm.js request. Open Developer Tools → Network and reload the page. A request to gtm.js with a 200 OK status means the container loads. If the request is missing or shows an error, GTM is not loading properly.Website Tracking Checker by Stape scans a URL and shows which analytics and advertising tools are active on the page. For a full review of a container, follow the GTM audit checklist.
tagassistant.google.com and your site domain. In Safari, turn off Prevent cross-site tracking while testing.More causes are covered in our guide to GTM Preview mode not working.
Want to switch to the server side?
Try for freeOct 1, 2026
Nov 30, 2026
Blog
A Google Tag Manager consultant sets up and manages tracking. Hire one when data is missing or off. They help you track better and improve performance.
Nov 25, 2026
Comments