Jump to content

timing a page visitation


nadeemshafi9

Recommended Posts

hello guys

i need to time how long a user has been looking at a page, i can use the time constructs and up them to the db ect, i can think of some extreme ways to time how long a user has looked at a page like every page would tell the DB what it is called and when that changes the time gets recorded along whith page details.

Is there an easier way of recording the time when the user navigates to another page eg i whant to know how long they looked at an item and then when they navigate away record this, in javascript its easy, but in PHP i have no ideaa how its done.

Any sugestions welcome please

thanx
Link to comment
https://forums.phpfreaks.com/topic/34572-timing-a-page-visitation/
Share on other sites

[quote]
Is there an easier way of recording the time when the user navigates to another page eg i whant to know how long they looked at an item and then when they navigate away record this, in javascript its easy, but in PHP i have no ideaa how its done.
[/quote]

yes it is do not use ajax for this.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.