Re: How to Implement "Most Viewed"?

2008-05-27 Thread Justin Lilly
On first pass, it doesn't appear that google analytics allows this sort of querying. Server log parsing seems to be the best solution suggested in terms of scaling and such. -justin On Tue, May 27, 2008 at 2:59 PM, didier rano <[EMAIL PROTECTED]> wrote: > Hi, > > I think that store every page

Re: How to Implement "Most Viewed"?

2008-05-27 Thread didier rano
Hi, I think that store every page view access in a log file seems to be very efficient. But it needs to have a consolidated server who runs a script (with cron). After analyze log file of each django server, this script could store the number of page view with a very efficient and minimalist

Re: How to Implement "Most Viewed"?

2008-05-27 Thread blis102
@Justin Are you aware of any way to do that with Google Analytics. That is in fact what we use but I am unaware of any API that I could use to achieve that. It doesnt seem like this would let me integrate this all into my models easily. @Norman Do you know of any good resources to do what you

Re: How to Implement "Most Viewed"?

2008-05-25 Thread James Bennett
On Sun, May 25, 2008 at 9:08 PM, jonknee <[EMAIL PROTECTED]> wrote: > Unless you cache the view. Just update it once an hour/day. You still have to record the raw number of hits somewhere. Doing this in the database, in real time, is often not possible because it does lead to one write per page

Re: How to Implement "Most Viewed"?

2008-05-25 Thread jonknee
On May 25, 7:54 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote: > Unless your site is very low traffic the thing you don't want to do is > write to the database every view.  That is anti-scalable. > Unless you cache the view. Just update it once an hour/day.

Re: How to Implement "Most Viewed"?

2008-05-25 Thread Norman Harman
blis102 wrote: > Hello All, > > Im wondering how I could go about implementing a "Most Viewed" feature > on my site. Lets say I have events, articles, and businesses, how > could I implement a "Most Viewed Businesses", "Most Viewed Articles", > "Most Viewed Events", "Most Viewed Content", "Most

Re: How to Implement "Most Viewed"?

2008-05-25 Thread Justin Lilly
I know several people who have implemented this feature tend to do so by interfacing with their traffic reporting API. Perhaps you can tap into google analytics (or whatever you use) to achieve the same? -justin On Sun, May 25, 2008 at 3:20 PM, blis102 <[EMAIL PROTECTED]> wrote: > > Hello All,

How to Implement "Most Viewed"?

2008-05-25 Thread blis102
Hello All, Im wondering how I could go about implementing a "Most Viewed" feature on my site. Lets say I have events, articles, and businesses, how could I implement a "Most Viewed Businesses", "Most Viewed Articles", "Most Viewed Events", "Most Viewed Content", "Most Viewed Articles This Week",