[wp-hackers] Get most seen blogs on WPMU

Vinicius Massuchetto viniciusandre at gmail.com
Fri Oct 9 17:19:33 UTC 2009


On Fri, Oct 9, 2009 at 12:54 PM, Jeremy Clarke <jer at simianuprising.com> wrote:
> On Fri, Oct 9, 2009 at 7:25 AM, Vinicius Massuchetto
> <viniciusandre at gmail.com> wrote:
>> I want to show the most seen blogs on WPMU home, and as I didn't find
>> any function that go through blogs by page view I was thinking about
>> putting a call to write on a table `wp_accesses` (or something) on
>> header.php of each theme available, so I can filter the most accessed
>> blogs by counting entries on this table.
>
> Any solution you find will involve a lot of writing to the database to
> track hits or else interfacing with an external service in complicated
> ways to compare the stats of the different blogs (i.e. you might be
> able to run a cron that checks the Google Analytics api for each of
> your blogs and sorts them).

That sounds like a reasonable idea. Much better than just write on the
database, is to let Google do it for us.

I was trying to find some documentation on Codex about the Wordpress
pseudo-cron. I am unable to use cron on my server, actually.

> A fun idea might be to use wp-supercache to get stats on which blogs
> have the most cached pages. Not sure how feasible that would be but in
> theory its sexy :P

I don't think that would be a flexible and exact way of detecting page
views, perhaps it looks creative.

Thanks for helping.
--
Vinícius Massuchetto
http://vinicius.soylocoporti.org.br


More information about the wp-hackers mailing list