Tuesday, March 31, 2009

Re: looking for a method to record 'page views'

Have you considered using an existing solution with metrics and
reporting surrounding it? You can give read only access to clients as
well.

http://edwardawebb.com/programming/php-programming/cakephp/piwik-analyze-visits-cakephp-site

On Mar 30, 1:39 pm, JamesF <usaexportexpe...@gmail.com> wrote:
> i did see that article but i think im goign to go with a different
> approach...
>
> i'm making a table called visits with four fields
>
> id ->auto increment
> listing_id ->related listing id
> timestamp ->now()
> ip_address ->users ip
>
> basically whenever a listing is view i will execute an insert on the
> database logging the information. when i display the stats i will run
> queries off the table.
> i have a feeling this isn't going to be very MVC compliant but bottom
> line is i need to get it working. i have a few concerns about database
> performance but i think it will be better to do it this way than a log
> file/cron job method.
>
> On Mar 30, 12:21 pm, brian <bally.z...@gmail.com> wrote:
>
> > Have a look at this HitCountBehaviorhttp://dsi.vozibrale.com/articles/view/simple-hitcount-behavior-for-c...
>
> > I haven't used this, though it's been on my list of things to investigate.
>
> > On Mon, Mar 30, 2009 at 11:14 AM, JamesF <usaexportexpe...@gmail.com> wrote:
>
> > > Hi all,
>
> > > I am looking for a simple way of keeping track of page views. The
> > > application is a rental properties website and I would like
> > > advertisers who list their properties to know how many times they have
> > > been viewed.
>
> > > Anyone have a tried and true method for this ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: