5 September 2018

How to add Google Tag Manager to Blogger (Blogspot) Blog

Google Tag Manager helps you, as you have already guessed it, to manage marketing tags in your websites and mobile apps.

But installing Google Tag Manager in Blogger Blog is a little tricky as it is not exactly same as installing it in WordPress or any other website, you have to make a very small change in the GTM Container Snippet then only it will work.

So if you already know how to Install GTM in WordPress and in other places, you facing problem only with Blogger, then do this -

In the GTM Container Snippet (in <head> Script) find dl=l!='dataLayer'?'&l='+l:'';, change the ampersand (&) to its HTML encoded version (&amp;)

So, the string
dl=l!='dataLayer'?'&l='+l:'';
will look like this
dl=l!='dataLayer'?'&amp;l='+l:'';

Save the changes and you are done.

If you are completely new to Google Tag Manager, read it entirely. Though you can skip and jump to any section using these navigation links below -

Introduction Google Tag Manager
Why use Google Tag Manager
Add Google Tag Manager to Blogger Blog (Step by Step) - follow these steps to do it smoothly, avoid making any mistake
Video Tutorial - you can skip to it if you do not like to read
Google Tag Manager Installation tips - there are several things you can do wrong

Popular Posts