That’s how I add Google Tag Manager on My Blogger Blog: #GTMTips

Few days ago, I was experimenting few things on my blog suddenly I thought I should write blog on How I add GTM code on my blogger blog? I hope people also want to know.

Now question is that, what are the challenges while adding GTM container code snippet on blogger? How & where I can add GTM code? What’s the code will work?

Let me tell you guys this is not the rocket science, you just need to follow few steps:

Step 1: First you have to generate GTM container code snippet from google tag manager: i.e.

Step 2: In order to add the GTM container code snippet, open your blogger blog, and click Theme menu in the main navigation of your blog settings and click edit HTML.

Step 3: Now, copy-paste the both GTM container snippet code to insert in the blog, one code will be insert in head section another one in the body section. 

Now copy-paste the first container snippet and insert just before the </head> tag. Copy-paste the other container snippet just after the <body> tag.

Step 4: Now, In the container snippet you will have to change a single code inserted in the head section container snippet. i.e. 

Find the following string: dl=l!='dataLayer'?'&l='+l:'';

The ampersand (&) to its HTML encoded version (&amp;)

The string looks like this: dl=l!='dataLayer'?'&amp;l='+l:'';

Step 5: Now, click save theme or you can preview theme and you are done :)

Step 6: Now check GTM code is working or not on blog through Tag assistant.

You can see tag assistant showing two tag, one is GA and second one is GTM. My GTM code is working :)

If you haven't install Tag assistant, click here to add tag assistant extension: https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk?hl=en

Step 7: Now, you can check GTM live Preview Mode on your blog.

You can check my blog: https://fresh-tadka.blogspot.com/

That will look like this:

Note: if you have any question/query, just comment below or you can inbox me.

要查看或添加评论,请登录

Sudha Mishra的更多文章

社区洞察

其他会员也浏览了