Hi, I have just installed the Google Analytic plug-in and I'm wanting to track static pages that I have created on my blog.
Do I need to add the address of each page I have created in the list -"Hosts you use for your blog"? It's just showing my blog address at the moment.
Any help would be much appreciated. Thanks
Tracking Static Pages Using Google Analytic Plug-in
Tracking Static Pages Using Google Analytic Plug-in
Check out this blog today!
Buy Eye Secrets strips.
Best devices reviewed at http://www.penisstretchers.org/.
Order Capsiplex slimming pills today.
Buy Meratol diet pills online.
Buy Eye Secrets strips.
Best devices reviewed at http://www.penisstretchers.org/.
Order Capsiplex slimming pills today.
Buy Meratol diet pills online.
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Tracking Static Pages Using Google Analytic Plug-in
Hi!
Using the google analtics plugin, you cannot track individual static pages. The option you refer to only concerns the hostname, not individual pages.
To track individual items, you will need to remove the plugin and instead edit the templatefile 'index.tpl' of your template and manually add the javascript for analytics, and use IF-Branches to check which one to use, basically like this:
Use the appropriate analytics JS code in those places, and replace the proper staticpage pagetitles with the ones you really have.
Also remember that if you copy+paste javascript, you need to replace { with {ldelim} and } with {rdleim} to prevent smarty parsing errors. You you might need to put the whole javascript block in a {literal}...{/literal} block.
HTH,
Garvin
Using the google analtics plugin, you cannot track individual static pages. The option you refer to only concerns the hostname, not individual pages.
To track individual items, you will need to remove the plugin and instead edit the templatefile 'index.tpl' of your template and manually add the javascript for analytics, and use IF-Branches to check which one to use, basically like this:
Code: Select all
{if $staticpage_pagetitle == 'My first staticpage'}
... analytics code #1 here ...
{elseif $staticpage_pagetitle == 'Second staticpage'}
... analytics code #2 here ...
{else}
... analytics code #3 here ...
{/if}
Also remember that if you copy+paste javascript, you need to replace { with {ldelim} and } with {rdleim} to prevent smarty parsing errors. You you might need to put the whole javascript block in a {literal}...{/literal} block.
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Regular
- Posts: 765
- Joined: Tue Oct 17, 2006 2:36 pm
- Location: Vienna/Austria
- Contact: