PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Feb 20, 2017 3:37 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Track Website Activity
PostPosted: Tue Jan 10, 2017 12:47 pm 
Offline
Forum Newbie

Joined: Tue Jan 10, 2017 12:41 pm
Posts: 4
Hi All

New to PHP Programming and Im having an issue trying to get this working.

I have a site that basically has reports and I need to track (user login/logoff, report downloads, how many times each user searches each report ect...)

I would need that to either go to a log file or excel or something.

Help please


Top
 Profile  
 
PostPosted: Tue Jan 10, 2017 1:18 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6356
Location: WA, USA
Okay. Is there a specific issue you have, or are you asking for general advice?


Top
 Profile  
 
PostPosted: Tue Jan 10, 2017 1:22 pm 
Offline
Forum Newbie

Joined: Tue Jan 10, 2017 12:41 pm
Posts: 4
I am asking for general advice on how to do this.


Top
 Profile  
 
PostPosted: Tue Jan 10, 2017 10:28 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6356
Location: WA, USA
Put everything into a database first, then you can export it into whatever format you want later.

Can you come up with a list of exactly what you need to track? Or at least the types of things you want to track, like "when the user does something with a report"?


Top
 Profile  
 
PostPosted: Wed Jan 11, 2017 10:12 am 
Offline
Forum Newbie

Joined: Tue Jan 10, 2017 12:41 pm
Posts: 4
I would like to track the following...

1. When a person logs on and off.
2. What reports they download.
3. How many times they search a report.

For starters that would be great.


Top
 Profile  
 
PostPosted: Wed Jan 11, 2017 10:21 am 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6356
Location: WA, USA
I'm asking because it might be annoying later to discover you want other reports that don't quite fit into the system you'll be designing now.

I suggest two log tables: one for login and logout actions (with ID, date, user ID, and action like "login" or "logout"), the other for report-based actions (with ID, date, user ID, report ID, and action like "download" or "search"). Insert into them when the respective actions occur.


Top
 Profile  
 
PostPosted: Wed Jan 11, 2017 12:38 pm 
Offline
Forum Newbie

Joined: Tue Jan 10, 2017 12:41 pm
Posts: 4
Do we have some code that I can try as like I said before very new to this?


Top
 Profile  
 
PostPosted: Thu Jan 12, 2017 12:33 am 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6356
Location: WA, USA
Not really.

How were the sites originally developed? Whoever did that would be the best to add this logging functionality, because otherwise you'll need to start learning some web programming - PHP, MySQL, stuff like that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group