Create a Google Tag Manager Account
this topic might sound way too basic for some of you, remember that there are nuances you should keep in mind. In this blog post, I’ll describe several ways how to install Google Tag Manager on a website, highlighting the pros and cons of each option.
Just in case you haven’t done this, first, you should create a Google Tag Manager account and a container.
Create a Google Tag Manager Account
To get started, first let’s create a GTM account. Go to Google Tag Manager official website and click the main call-to-action in order to create a new Google Tag Manager account.

Just like with any other Google’s product, you will use the same Google account for Tag Manager. So if you’re already on Gmail (Google Ads, Google Analytics, etc.) you will be automatically logged in to Google Tag Manager. If not, create a Google account first (I will not show that procedure, so you’re on your own here ).
Once you log in, you’ll be asked to create a new Google Tag Manager account and a new container.

Google Tag Manager account works the same as the Google Analytics account, usually, it’s for a company/business/client, while a container is usually for a website or application. A single container can contain many tags, triggers, and variables.
However, if there are several websites that belong to a single business and their structure is very similar (plus, their tracking implementation is similar), feel free to use one container on multiple websites. I have written more about this topic here.
Where can I find the Google Tag Manager code?
Google Tag Manager provides you with the exact code and instructions where to add it to your website. There are two places where you can find it:
- By clicking container ID (located next to Publish and Preview buttons)

- Or by going to Admin > Account > Container > Install Google Tag Manager

Any of these options will open instructions on how to install the Google Tag Manager code on your website + the code snippets that you must add to a site.

Add Google Tag Manager container code to the website
Follow the instruction and place the first code (which is surrounded by
If you don’t possess coding skills, this work should be done by a developer (because just blind copy-pasting will not work). There must be some logic written that adds actually dynamic information to the dataLayer (e.g. if a user logs in, his/her actual customerType should be added to the Data Layer.
Data Layer is not an easy concept to grasp on for beginners. So if you are confused in this chapter, don’t worry. Everyone was. Here are some additional resources for you to read to get more familiar with it:
Frequently Asked Questions
So I’ve described what the perfect and recommended scenario looks like:
- part of Google Tag Manager code goes to (usually before the closing tag).
- part goes after the opening tag.
But real-life situations are far from perfect and sometimes we have to deal with very limited circumstances. In this chapter, we’ll discuss other not-so-perfect options and what the possible outcome might be.
#1. Can I place
Yes, you can.
This usually happens while working with limited content management systems (CMS), which prohibit you from accessing the website’s source directly and only allows to paste tracking codes into a dedicated field. All content of that field is then placed at the very end of website’s HTML.
While it is not recommended, it is possible to put the Google Tag Manager


