Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Where to post code snippet for Google Analytics with this theme?


  #1  
Old Aug 27, 2010, 10:55 AM
sjolyjuly
 
70 posts · Mar 2010
Could find no clear, unambiguous description on GA, Wordpress or anywhere else. Lots of fog and contradictions. Where does the GA code go? In the theme? On the posts? Where on the page? Header? Footer? I am using version 3.4.6. Thanks.

  #2  
Old Aug 27, 2010, 12:13 PM
studioelle's Avatar
studioelle
 
40 posts · Mar 2010
Alabama, USA
There is a Google Analytics plug-in. I use it on my site and it works great. (Wordpress 3 and Atahualpa 3.5.3) This way you don't have to edit any theme files.
  #3  
Old Aug 27, 2010, 04:08 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
check out the 'Add HTML/CSS Inserts' options
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Aug 28, 2010, 11:02 AM
sjolyjuly
 
70 posts · Mar 2010
Quote:
Originally Posted by studioelle
There is a Google Analytics plug-in. I use it on my site and it works great. (Wordpress 3 and Atahualpa 3.5.3) This way you don't have to edit any theme files.
Thanks JD and studioelle. Much appreciated.

Another question: I have a GA account and I had installed the WP-GA plugin. I got strange GA numbers that didn't match WP stats. I'd like to uninstall GA and re-install WP-GA plugin. Is there any secret to uninstalling GA? Do I need to uninstall it or should I do something else to make the results of both plugins match?
  #5  
Old Sep 6, 2010, 01:36 PM
goonygoogoo
 
10 posts · Sep 2010
I put the code in the footer.php and that seems to be working for me.
  #6  
Old Sep 6, 2010, 02:06 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You can edit footer.php and add things there, but when you update the theme, you will lose the change and have to do it over. Adding it using the theme option will keep it around over theme upgrades.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by lmilesw; Sep 8, 2010 at 04:01 PM.
  #7  
Old Sep 8, 2010, 04:50 AM
unadoyle
 
4 posts · Sep 2010
Manchester, UK
Hi there

I'd like to add a widget for GA yet there's loads of them - which would you recommend and why please?

Also, if you install one widget and later install a different one will you lose the date that had been collected or will it all still be in the google analytics account?

Thanks very much.

Last edited by lmilesw; Sep 8, 2010 at 04:01 PM.
  #8  
Old Sep 8, 2010, 04:06 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Google analytics info is collected on their server so I don't see why changing the plugin should have any bearing on the stored data.

I have only used Google Analytics for WordPress so can't give comparisons. I probably decided on that one after testing several though. The author is well known and the plugin was recently updated.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #9  
Old Oct 18, 2010, 01:54 PM
eperon
 
11 posts · Aug 2010
in google analytics, it says:

Copy the following code, then paste it onto every page you want to track immediately before the closing </head> tag

however, the ATAHUALPA html/css inserts page says to insert it at the body bottom.

I have some troubles with linking adsense to analytics, and i wonder if this is the reason...

Last edited by eperon; Oct 18, 2010 at 02:21 PM.
  #10  
Old Oct 18, 2010, 02:05 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I don't know. I have always use a Google Analytics plugin.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #11  
Old Oct 28, 2010, 10:53 AM
ahliam
 
9 posts · Sep 2010
Send a message via Yahoo to ahliam
hi Larry & juggledad,

please visit my page www.kasturisyifa.com, how can i place(change) my GA to search box.

thanks

Last edited by ahliam; Oct 28, 2010 at 11:05 AM.
  #12  
Old Oct 28, 2010, 03:25 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Where do you want to place it?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #13  
Old Oct 28, 2010, 08:22 PM
ahliam
 
9 posts · Sep 2010
Send a message via Yahoo to ahliam
hi,
did u see search box (i change to carian) at style & edit area/Text in header search box. if can not, i want place that GA to MENU 2?

Thanks
  #14  
Old Oct 28, 2010, 08:26 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Put the following in ATO>Add HTML/CSS Inserts>CSS Inserts
HTML Code:
div.searchbox-form {margin-top:41px !important;}
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #15  
Old Oct 28, 2010, 08:36 PM
ahliam
 
9 posts · Sep 2010
Send a message via Yahoo to ahliam
thanks larry..

can i copy Google script to change that search box?

<form action="http://www.google.com.my/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-9166781043518947:85hqp5-tjr9" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com.my/cse/brand?form=cse-search-box&amp;lang=en"></script>

tq
  #16  
Old Oct 28, 2010, 08:43 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I thought you just wanted to reposition the search box.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #17  
Old Oct 28, 2010, 08:46 PM
ahliam
 
9 posts · Sep 2010
Send a message via Yahoo to ahliam
.. but i think that can be use too.. so i cannot place the google ads to MENU1 or MENU2?

thanks
  #18  
Old Oct 28, 2010, 10:15 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Well you could wrap that code in a div like below and put it just before the menu you want it to the right of
HTML Code:
<div style="float:right;"><form action="http://www.google.com.my/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-9166781043518947:85hqp5-tjr9" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com.my/cse/brand?form=cse-search-box&amp;lang=en"></script></div>
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks

Tags
google analytics



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add Google Analytics code TheSurvivalMom Forum How-To 3 Apr 15, 2011 03:58 AM
Does it matter if Google Analytics code is in the footer? seventhyearfalling Web Hosting for WordPress 4 Dec 20, 2009 01:05 AM
Aweber Autoresponder - how to add snippet code to wordpress theme racingprofits Sidebars & Widgets 0 Aug 24, 2009 01:02 PM
cant get rid of google analytics code since i updated to Atahualpa theme? 123davelee Sidebars & Widgets 8 Aug 15, 2009 11:49 AM
Google Analytics plug-in rendering error code. acemaker Plugins & Atahualpa 2 Jun 28, 2009 07:07 AM


All times are GMT -6. The time now is 12:33 PM.


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