Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Where do I put google analytics? (http://forum.bytesforall.com/showthread.php?t=16427)

daniel jones Jan 5, 2012 09:58 PM

Where do I put google analytics?
 
I am trying to install google analytics on my Atahualpa theme. Where do I put that please?

Sorry newbie question.

lmilesw Jan 5, 2012 10:05 PM

Look in the Add HTML/CSS Inserts section of the theme options

GarethP Jan 6, 2012 02:22 AM

or use one of the many google analytics plugins...

juggledad Jan 6, 2012 03:26 AM

or do a forum search and see this has been answered many times....

Gwtrans Jan 29, 2012 01:37 PM

If I'm using Atahualpa 3.6.4 which doesn't have the updated instructions for adding the google asynchronous snippet but I want to add it to it would I insert it into the header HTML insert? Would that make the code end up right before the </header> tag?

juggledad Jan 29, 2012 02:27 PM

try it - the best way to learn

Gwtrans Jan 31, 2012 07:59 PM

Well I put it into the header insert and it pretty much shows up right in the middle with a lot stuff between it and the </head>.

Now what difference was made in the new version of Atahualpa in regards to the google analytics insert? With the new one was there any coding changes or did it just say to put the code in the header?

juggledad Feb 1, 2012 03:07 AM

Where exact did you put it? IE ato->?????????
name the option action and option name where you put it

lmilesw Feb 1, 2012 06:12 AM

There WAS a change to the wording of where it should go as the HTML Inserts: Header is the suggested place. However it COULD go in HTML Inserts: Body Bottom as used to be indicated.

Gwtrans Feb 1, 2012 07:55 AM

In the theme options I put it in html/css inserts > html inserts: header > in the box underneath.

It's in the header but it's not right before </head>, there is quite a bit more code between it and the end of the header.

juggledad Feb 1, 2012 07:56 AM

What is the url?

lmilesw Feb 1, 2012 08:54 AM

@Gwtrans... Is analytics working?

Gwtrans Feb 1, 2012 06:20 PM

@lmilesw: Yes the google analytics code is working.

@juggledad: I'm private messaging you the link now.

juggledad Feb 1, 2012 06:29 PM

3.6.4 puts the contents of 'HTML Inserts: Header' near the top of the <head>
3.7.3 puts the contents of 'HTML Inserts: Header' just bfore teh </head>
that is in a vanalla install, it is possible that other plugins could cause it to shift.

Gwtrans Feb 1, 2012 06:31 PM

So to be able to put it right before </head> I would need a plugin or edit the theme files?


Anyone know the downsides of having the code too high up?

lmilesw Feb 1, 2012 06:48 PM

Quote:

Originally Posted by Gwtrans (Post 79769)
Anyone know the downsides of having the code too high up?

I never thought about it.
  • I put the code in
  • Analytics works
  • I'm happy

juggledad Feb 1, 2012 06:53 PM

update to 3.7.3

Gwtrans Feb 1, 2012 07:51 PM

Well it works and we made some changes to the theme to get it to look the way we wanted so we don't really want to have to update just because of google analytics. Is there any plugins for analytics that put it where it's supposed to be?


All times are GMT -6. The time now is 05:14 AM.

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