How to add google tag manager to blogger?

How to add google tag manager to blogger?

Let's start

Blogger is a free blogging platform by google, where you can host a free blog using a Blogspot subdomain

The best thing with blogger is that you can have access to html source code. You can insert code snippets and modify the code to add extra functionalities. Alternatively, you can add GTM container snippets to the blogger the way you add to any other site.

Popular FAQ: How to remove query string using GTM

Add GTM container codes to the Blogger template

In order to add the GTM container code snippet, open your blogger blog, and navigate to template and click edit HTML.

 blogger template

blogger template

Now, GTM will give you two code snippets to insert in your blog, one in the head section and the other in the body section. Copy the first container snippet and place in the head section just before the </head> tag. Copy and paste the other container snippet just after the <body> tag.

Now, when you click on the save template button you will see the following error.

 gtm code error gtm code error

In order to resolve this error, you will need to add a single code change in the code snippet inserted in the head section.

You will have to change the ampersand(&) to its HTML encoded version(&amp;)

 ampersand ampersand  gtm code changes gtm code changes

Now click save template and you are done 🙂


Are you looking for a top-notch Data Analytics team to enhance your business’s data-driven decision making? Reach out here or learn why hiring a customer analytics consultant is important for your business? If you want to know more about us, click here.

Don't miss out when new resources launch

Our customer analytics experts share wisdom only once a month

Share now

We are a customer-analytics consultancy that transforms messy data into actionable insights that will help you grow your company and make better data-backed decisions.

We're trusted by the best
Need something done?