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)
-   -   Where to post code snippet for Google Analytics with this theme? (http://forum.bytesforall.com/showthread.php?t=9221)

sjolyjuly Aug 27, 2010 09:55 AM

Where to post code snippet for Google Analytics with this theme?
 
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.

:confused:

studioelle Aug 27, 2010 11:13 AM

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.

juggledad Aug 27, 2010 03:08 PM

check out the 'Add HTML/CSS Inserts' options

sjolyjuly Aug 28, 2010 10:02 AM

Quote:

Originally Posted by studioelle (Post 41775)
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?

goonygoogoo Sep 6, 2010 12:36 PM

I put the code in the footer.php and that seems to be working for me.

juggledad Sep 6, 2010 01:06 PM

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.

unadoyle Sep 8, 2010 03:50 AM

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. :)

lmilesw Sep 8, 2010 03:06 PM

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.

eperon Oct 18, 2010 12: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...

lmilesw Oct 18, 2010 01:05 PM

I don't know. I have always use a Google Analytics plugin.

ahliam Oct 28, 2010 09:53 AM

hi Larry & juggledad,

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

thanks

lmilesw Oct 28, 2010 02:25 PM

Where do you want to place it?

ahliam Oct 28, 2010 07: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

lmilesw Oct 28, 2010 07:26 PM

Put the following in ATO>Add HTML/CSS Inserts>CSS Inserts
HTML Code:

div.searchbox-form {margin-top:41px !important;}

ahliam Oct 28, 2010 07: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&amp;lang=en"></script>

tq

lmilesw Oct 28, 2010 07:43 PM

I thought you just wanted to reposition the search box.

ahliam Oct 28, 2010 07:46 PM

:).. but i think that can be use too.. so i cannot place the google ads to MENU1 or MENU2?

thanks

lmilesw Oct 28, 2010 09:15 PM

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>



All times are GMT -6. The time now is 06:41 AM.

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