Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Question about where to add Google tags snippet (http://forum.bytesforall.com/showthread.php?t=19438)

sleenie Jan 24, 2013 03:33 PM

Question about where to add Google tags snippet
 
I'm trying to avoid using another plugin to do this. I want to add the Google tag snippet and of course it says to add in each page. Can I just add it to the body top under HTML/CSS inserts?

lmilesw Jan 24, 2013 07:15 PM

What is the snippet and where do they say it should go.

sleenie Jan 24, 2013 09:53 PM

Google says to place it immediately after the opening <body> tag.



<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-SZ3X"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:''; j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-SZ3X');</script>
<!-- End Google Tag Manager --

juggledad Jan 25, 2013 04:02 AM

Quote:

Can I just add it to the body top under HTML/CSS inserts?
Quote:

Google says to place it immediately after the opening <body> tag.
Did you try it?

sleenie Jan 25, 2013 05:49 PM

I did put it in the Body tag, i guess but I guess what I'm asking is whether this covers it for all pages since google says to add it for all pages. This does that, right?

juggledad Jan 25, 2013 08:26 PM

Yes it does. Did you put it 'in' the body tag or just after it?

sleenie Jan 31, 2013 02:33 AM

Sorry, I did miss this response. I put it in the Body Tag. I've got no problems so far so I assume i did it right?

juggledad Jan 31, 2013 04:07 AM

if you put it in 'HTML Inserts: Body Tag' then it will be part of the <body....> statement and I'd expect you to get an error on the page.

sleenie Jan 31, 2013 07:03 AM

I've actually had it there for several days with no problem. Should it be in Body Top?

juggledad Jan 31, 2013 09:10 AM

what is the url?

sleenie Jan 31, 2013 09:53 PM

It's Hoffbrau Steaks. Thanks

juggledad Feb 1, 2013 03:35 AM

Well I see it in the body and am surprised you don't see errors espically in IE. Non the less, I would move it to the 'HTML Inserts: Body Top' option


All times are GMT -6. The time now is 01:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.