Skip to content

punitdarji/track-user-activity-event-log

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Track User Activity Log

Track User Activity on your webpage whenever the user will click, double click, print, copy-paste, form submit and form reset. This script will take screentshot of the webpage and add event log for the same which will store the event details, screenshot file name, time and the user's IP Address.

Developed By :

Bharat Parmar

Version :

1.0

File Structure :

  1. example.php : Example Script file

  2. ajax/trackuser.php : Saving Screentshot image and adding event log.

  3. screenshot/event-log.log : This file will store the data of the Event like Event Details, Screenshot File Name, Time and IP Address.

  4. screenshot : this directory will store all the screenshots which will be taken on the below listed events.

  • On Form Submit

  • On Form Rest

  • On Click

  • On Print

  • On Right Click

Requirements :

  1. PHP Version : 3.0 and above

How It Works :

  1. HTML to Canvas : Script will read the HTML code of the Web Page.

  2. HTML2Canvas Plugin : This plugin will generate Canvas content into the base64 data url of the image.

  3. trackuser.php : Jquery send the Canvas Image Data URL to php file which will created new png image file. It will also store the event details, Time, Screenshot Image file name and IP Address.

  4. "screenshot" directory should have writeable permission.

How to use :

Please check example.php.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.6%
  • Hack 2.1%
  • PHP 1.3%