Re: Hit logging in Cake

2007-11-18 Thread Steve Boyd

agreed, just use google analytics.  the reports that get generated
from it are second to none

about 90% of people have javascript enabled, so just round your number
up a little bit

I work for a medium sized website that gets thousands of hits a day
and we exclusively use google for hit tracking


On Nov 19, 1:58 pm, Adam Royle <[EMAIL PROTECTED]> wrote:
> Maybe you should consider one of the many javascript-stats solutions,
> such as Google Analytics or Mint.
>
> Unless you need to access that data inside your cakephp app, or you
> need to track something in particular, using an external service is a
> better way to go - that way bots don't enter into your stats.
>
> Adam
>
> On Nov 19, 1:50 am, Dave J <[EMAIL PROTECTED]> wrote:
>
> > You also need to take into consideration if you'll be using view
> > caching or not. As far as I know, once a view has been cached,
> > beforeRender() won't be called on anymore.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Hit logging in Cake

2007-11-18 Thread bingo

hi

you might want to checkout this component.
http://bakery.cakephp.org/articles/view/tracking-navigation-history-of-a-user

It tracks what pages are loaded and save them in a session. But you
can easily modify for your need

regards

On Nov 18, 7:58 pm, Adam Royle <[EMAIL PROTECTED]> wrote:
> Maybe you should consider one of the many javascript-stats solutions,
> such as Google Analytics or Mint.
>
> Unless you need to access that data inside your cakephp app, or you
> need to track something in particular, using an external service is a
> better way to go - that way bots don't enter into your stats.
>
> Adam
>
> On Nov 19, 1:50 am, Dave J <[EMAIL PROTECTED]> wrote:
>
>
>
> > You also need to take into consideration if you'll be using view
> > caching or not. As far as I know, once a view has been cached,
> > beforeRender() won't be called on anymore.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Hit logging in Cake

2007-11-18 Thread Adam Royle

Maybe you should consider one of the many javascript-stats solutions,
such as Google Analytics or Mint.

Unless you need to access that data inside your cakephp app, or you
need to track something in particular, using an external service is a
better way to go - that way bots don't enter into your stats.

Adam

On Nov 19, 1:50 am, Dave J <[EMAIL PROTECTED]> wrote:
> You also need to take into consideration if you'll be using view
> caching or not. As far as I know, once a view has been cached,
> beforeRender() won't be called on anymore.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Hit logging in Cake

2007-11-18 Thread Dave J

You also need to take into consideration if you'll be using view
caching or not. As far as I know, once a view has been cached,
beforeRender() won't be called on anymore.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Hit logging in Cake

2007-11-18 Thread francky06l

In beforeRender (app_controller) maybe. You could make a component
that loads your Log model and insert a record in before render.
hope this helps

On Nov 18, 5:44 am, Rick <[EMAIL PROTECTED]> wrote:
> Hi all.
>
> I have a simple (I hope) question.  I want to add some hit logging to
> my site.  I created a 'Log' table, controller, view etc, but the
> question is how do I assure that a new Log record is created and saved
> on every page load.  I was thinking about putting it at the end of the
> default.thtml layout file, but I can't seem to figure out how to do
> that.  I could do some raw SQL INSERTS, but I was hoping to find out
> the proper Cake way to do do this...  Thanks.
>
> Rick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Hit logging in Cake

2007-11-17 Thread Rick

Hi all.

I have a simple (I hope) question.  I want to add some hit logging to
my site.  I created a 'Log' table, controller, view etc, but the
question is how do I assure that a new Log record is created and saved
on every page load.  I was thinking about putting it at the end of the
default.thtml layout file, but I can't seem to figure out how to do
that.  I could do some raw SQL INSERTS, but I was hoping to find out
the proper Cake way to do do this...  Thanks.

Rick

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---