Forum: Ruby on Rails Tracking page hits

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Robert D. (Guest)
on 2006-04-12 05:07
Hello all,

I am developing an online store and would like to keep track of how many
times each product was viewed. While I can keep track of page hits using
something like webalizer, this won't really work (I don't think) as the
pages are not going to be static. Has anyone else implemented this and
if so could you please point me in the right direction. A potential
solution that I have come up with is to keep a running tally in a table
in the db. I appreciate any input that you all can give.

Sincerely,

Robert D.
Scott W. (Guest)
on 2006-04-12 05:29
(Received via mailing list)
Do your urls look static?  For example http://localhost/product/123.  If
so any stats package will have no problem.  You can look into third
party services like Mint or Google Analytics.

----------------------------------------------------------------------------------------------------
What's an Intel chip doing in a Mac? A whole lor more that it's ever
done in a PC.

My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://scottwalter.com/problog

----- Original Message ----
From: Robert D. <removed_email_address@domain.invalid>
To: removed_email_address@domain.invalid
Sent: Tuesday, April 11, 2006 8:07:34 PM
Subject: [Rails] Tracking page hits

Hello all,

I am developing an online store and would like to keep track of how many
times each product was viewed. While I can keep track of page hits using
something like webalizer, this won't really work (I don't think) as the
pages are not going to be static. Has anyone else implemented this and
if so could you please point me in the right direction. A potential
solution that I have come up with is to keep a running tally in a table
in the db. I appreciate any input that you all can give.

Sincerely,

Robert D.
Robert D. (Guest)
on 2006-04-12 05:41
Scott,

Yes they will look as you have shown. I will put webalizer on there and
see what I get. Thanks for the help.

- Rob D.

Scott W. wrote:
> Do your urls look static?  For example http://localhost/product/123.  If
> so any stats package will have no problem.  You can look into third
> party services like Mint or Google Analytics.
>
> 
----------------------------------------------------------------------------------------------------
> What's an Intel chip doing in a Mac? A whole lor more that it's ever
> done in a PC.
>
> My Digital Life - http://scottwalter.com/blog
> Pro:Blog - http://scottwalter.com/problog
This topic is locked and can not be replied to.