Page 1 of 1

site statistics only show root

Posted: Sun Dec 02, 2012 3:47 pm
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?

Re: site statistics only show root

Posted: Sun Dec 02, 2012 5:28 pm
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

Re: site statistics only show root

Posted: Mon Dec 03, 2012 1:07 am
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.

Re: site statistics only show root

Posted: Mon Dec 03, 2012 12:40 pm
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

Re: site statistics only show root

Posted: Wed Dec 26, 2012 3:05 am
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.

Re: site statistics only show root

Posted: Wed Dec 26, 2012 11:09 am
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