site statistics only show root

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
shsp
Regular
Posts: 17
Joined: Tue Nov 27, 2012 4:22 am

site statistics only show root

Post by shsp »

The site stats only show the root of the blog. The individual entries are not captured in the site log. How does one know which entry was read and /or which category was clicked?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: site statistics only show root

Post by garvinhicking »

Hi!

You will need to either use google Analytics to track URLs like these, or enable URl Rewriting (if your server supports it) to be able to let those pages show up in your statistics.

Regards,
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/
shsp
Regular
Posts: 17
Joined: Tue Nov 27, 2012 4:22 am

Re: site statistics only show root

Post by shsp »

Yes, server supports. Where is this documented so I can get the exact commands. Also need documentation as to where in the /blog subdirectory the google analytics code is placed. Thanks.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: site statistics only show root

Post by garvinhicking »

Hi!

When you log in go to the serendipity configuration, and search for "URL rewriting"; enable that and save.

For Google Analytics we have an event plugin that you can download on http://spartacus.s9y.org/ or via the spartacus event plugin that comes with Serendipity. If you manually download the plugin from the URL, you need to put the extracted files in your /plugins/ subdirectory, and then you can go to your s9y backend, "Configure Plugins" and install the event plugin from there ("Click here to install an event plugin").

The other way is to create your own template in /templates/ (copy over the files from templates/default/ as a starting base, then modify info.txt to give the template its unique name, then select that new template in your s9y admin section "Manage styles"). Once that is done you can place any code you like in index.tpl.

Also you could install the event plugin "HTML Page Nugget" and place any HTML code you want inside the HTML Head. This event plugin can also be installed through spartacus as mentioned above.

Regards,
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/
shsp
Regular
Posts: 17
Joined: Tue Nov 27, 2012 4:22 am

Re: site statistics only show root

Post by shsp »

Thanks. I did change the url rewriting, so now I see everything with Webalizer and AWSTATS, which is great. Interesting information. The source of the rise in traffic is still not obvious.

Now I would like to install the Google analytics. I downloaded the code and ftp'd to the plugins folder of the blog. but it is not showing up for configuration in the list of plugins. How to I force the blog to recognize the plugin? Perhaps there is a version issue. Here are my versions per the footer:
Powered by Serendipity 1.5.5 and PHP 5.2.17

Thanks.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: site statistics only show root

Post by garvinhicking »

Hi!

Which files did you exactly upload to which place? You will need for a file like plugins/serendipity_event_google_analytics/serendipity_event_google_analytics.php to exist for s9y to catch up on it...

Regards,
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/
Post Reply