eskantze Posted February 24, 2009 Share Posted February 24, 2009 This might not be the right avenue, but I have the following situation: ??? I created a database driven site, which displays different information depending on a user's client affiliation. So, if you access page.php, it will display different info for company A, vs. company B or C. However, I now have the need to track hits/visits on the site and break it down by client. This won't work on a regular web stats system because I just get all the hits for page.php and don't know how to break them down further. I tried a rudimentary PHP/mySQL interaction to track the hits, but I can't get it to work the way I want it to. All I need is the number of visits per page, broken down by client. I am open to any ideas, SQL or otherwise. Thanks in advance for your help Link to comment https://forums.phpfreaks.com/topic/146639-mysql-as-a-usagestats-system/ Share on other sites More sharing options...
trq Posted February 24, 2009 Share Posted February 24, 2009 So, if you access page.php, it will display different info for company A, vs. company B or C. How do you currently determine who is from company A, B or C? Link to comment https://forums.phpfreaks.com/topic/146639-mysql-as-a-usagestats-system/#findComment-769881 Share on other sites More sharing options...
eskantze Posted February 24, 2009 Author Share Posted February 24, 2009 So, if you access page.php, it will display different info for company A, vs. company B or C. How do you currently determine who is from company A, B or C? Which information is seen is determined by a data table of users, so the table might look something like: username password site_version john doe 1 Jane doe 2 So, john would see version 1 and Jane would see version 2, etc. Link to comment https://forums.phpfreaks.com/topic/146639-mysql-as-a-usagestats-system/#findComment-770623 Share on other sites More sharing options...
trq Posted February 24, 2009 Share Posted February 24, 2009 So, your able to identify John and Jane as being two seperate identities? All you need do is log each hit for each identity seperately. Seems simple enough to me. Link to comment https://forums.phpfreaks.com/topic/146639-mysql-as-a-usagestats-system/#findComment-770639 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.