|
#1
Aug 27, 2010, 10:55 AM
|
|
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
Aug 27, 2010, 12:13 PM
|
|
|
|
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
Aug 27, 2010, 04:08 PM
|
|
|
|
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
Aug 28, 2010, 11:02 AM
|
|
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
Sep 6, 2010, 01:36 PM
|
|
I put the code in the footer.php and that seems to be working for me.
|
#6
Sep 6, 2010, 02:06 PM
|
|
|
|
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
Sep 8, 2010, 04:50 AM
|
|
|
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
Sep 8, 2010, 04:06 PM
|
|
|
|
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
Oct 18, 2010, 01:54 PM
|
|
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
Oct 18, 2010, 02:05 PM
|
|
|
|
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
Oct 28, 2010, 10:53 AM
|
|
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
Oct 28, 2010, 03:25 PM
|
|
|
|
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
Oct 28, 2010, 08:22 PM
|
|
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
Oct 28, 2010, 08:26 PM
|
|
|
|
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
Oct 28, 2010, 08:36 PM
|
|
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&lang=en"></script>
tq
|
#16
Oct 28, 2010, 08:43 PM
|
|
|
|
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
Oct 28, 2010, 08:46 PM
|
|
.. but i think that can be use too.. so i cannot place the google ads to MENU1 or MENU2?
thanks
|
#18
Oct 28, 2010, 10:15 PM
|
|
|
|
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&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.
|
|