Contact salesTry for free

Set up Google Tag Manager in 5 minutes

Uliana Lesiv

Uliana Lesiv

Author
Updated
Apr 8, 2026
Published
Sep 10, 2025
Also available in

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. Getting started comes down to a few straightforward steps:

  1. Sign in to tagmanager.google.com and create a GTM account and container.
  2. Accept the data processing terms.
  3. Add the GTM code snippets to your website's head and body sections.
  4. Configure your tags, triggers, and variables inside the container.
  5. Test your setup using GTM Preview and submit the changes.

The full detailed guide with step-by-step instructions for both web and server container setups is available further in this article. And if you're looking to speed things up, also check out the Setup Assistant, a free tool developed by Stape that automatically adds pre-built tracking templates to your GTM containers based on the platforms you select.

What is Google Tag Manager?

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. Using GTM eliminates the need for adding code manually to your website's HTML, making it simpler to manage the data tracking process.

Key Google Tag Manager concepts

How to set up Google Tag Manager?

How to set up a web GTM container

1. Go to Google Tag Manager and sign in to your Google account.

2. In the tab Accounts, click Create account.

Create account in GTM
Create account in GTM

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.

Create web GTM  container
Create web GTM  container

4. Accept data processing terms.

Data Processing Terms
Data Processing Terms

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

Install GTM
Install GTM

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. For this purpose, 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:

How to configure the server GTM container

To configure the server GTM container, you will need:

  • Configured web GTM container as we showed above;
  • Hosting provider for the server GTM container. One of the popular options is hosting directly on Google Cloud Platform (GCP), but it may end up being a more expensive and harder-to-use solution, especially for new users. So, Stape is a cheaper and user-friendly alternative to GCP.

Server GTM container configuration is a more complex process compared to the web container. It includes the following steps:

  1. Creating a server GTM container within Google Tag Manager.
  2. Hosting the container on Stape.
  3. Configuring a custom tagging server URL to set up first-party cookies.
  4. Creating a Google Tag inside the Web GTM container.
  5. Configuring the GA4 Client inside the server GTM container to send data from the web to the server GTM container.
  6. Activating Stape's power-ups, such as Custom Loader and Cookie Keeper, to make tracking codes less affected by ad blockers and browser restrictions.

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.

Manual vs. plugin GTM setup: a quick comparison

Manual setupPlugin/app setup
How it worksGTM snippets are added directly to the website's source codeA CMS plugin or app adds the GTM snippet automatically to every page
Technical knowledge requiredRequires access to and familiarity with the site's codeMinimal, managed through the CMS admin panel
Time to implementLonger, especially on large sites with many pagesFast  a few clicks after plugin installation
Risk of errorsHigher, snippets can be misplaced or applied inconsistentlyLower, the plugin handles placement consistently across all pages
Suitable forDevelopers and technically experienced usersBeginners and non-technical users
CompatibilityAny websiteRequires a supported CMS (WordPress, Shopify, Magento 2, BigCommerce, Wix, PrestaShop, Salla)
MaintenanceManual updates if the snippet needs to changePlugin handles updates automatically

💡 Configuring tags for multiple platforms can be time-consuming. The Setup Assistant 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 Assistant to get started.

FAQs

Want to switch to the server side?register now!

author

Uliana Lesiv

Author

Uliana is a Content Manager at Stape, specializing in analytics and integration setups. She breaks down complex tracking concepts into clear insights, helping businesses optimize data collection.

Comments

Try Stape for all things server-side

What’s going on?

Where are we going?

Attention!
This is a stand-up dog zone.