1 cindyrae Mar 14, 2008 03:18
3 flaminio Mar 17, 2008 16:47
Doesn't Google Analytics need to be in he HEAD tag?
4 cindyrae Mar 19, 2008 15:30
flaminio -
The Google Analytics site instructs the user to place the Google Analytics script before the closing </body> tag. Mine works fine placed just before the </body> tag.
thanh -
If you have a simple Javascript that probably will never change and that belongs on all your blog pages, it may be easier just to add it -- or the reference to the .js file -- to a _html_header.inc.php you copy down to your skin directory.
If the Javascript may change or be replaced, use the Free HTML widget:
1) You've got to have a widget container in the right place.
For instance, if your Javascript needs to appear inside the html <head> tag, then you'll need to use a skin that already has a widget container defined inside the HTML <head> tag of the skin or, from the skin code, add your own widget container to this skin.
2) From the back-office, find the widget container you identified in step 1. Add a Free HTML widget.
3) In the Free HTML widget, enter the script tag you want to add.
Examples:
<script type="text/javascript" src="http://www.mydomain.com/skins/myskin/myjavascript.js">
</script>
<script type="text/javascript" >
// my javascript here...
</script>
Hope this helps,
Cindy Rae
5 waltercruz Mar 19, 2008 15:58
There's plugin, in the b2evo plugins page that does the analytics stuff. Just need some update :)
6 cindyrae Mar 31, 2008 21:06
Hey, thanks for the reminder about the b2e plugin that provides blog stats.
I'm mainly using Google Analytics because they're supposed to incorporate outbound link tracking very soon.
Since no two stat tracking packages seem to offer the exact same capabilities, it's good to know about the b2e plugin in addition to Google Analytics.
Thanks!
- Cindy Rae
Cindy
How do you use Free HTML widget with Java scripts?
I have many JS from other apps, but dont know how to load JS.
Tv