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: |
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.
|
check out the 'Add HTML/CSS Inserts' options
|
Quote:
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? |
I put the code in the footer.php and that seems to be working for me.
|
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.
|
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. :) |
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. |
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... |
I don't know. I have always use a Google Analytics plugin.
|
hi Larry & juggledad,
please visit my page www.kasturisyifa.com, how can i place(change) my GA to search box. thanks |
Where do you want to place it?
|
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 |
Put the following in ATO>Add HTML/CSS Inserts>CSS Inserts
HTML Code:
div.searchbox-form {margin-top:41px !important;} |
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 |
I thought you just wanted to reposition the search box.
|
:).. but i think that can be use too.. so i cannot place the google ads to MENU1 or MENU2?
thanks |
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"> |
All times are GMT -6. The time now is 06:53 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.