CodeIgniter Forums
Capture user Information and store in Database - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Capture user Information and store in Database (/showthread.php?tid=1426)



Capture user Information and store in Database - Rajesh - 03-09-2015

Hi,
I want to capture the information below from all sessions (including buying sessions & non-buying sessions.) of a website.
Please give me a suggestion that how to create a report in the backend that would allow us to pull this information for a certain time period.

Information to include:

IP Address
Device
Operating System
Operating System Version
Browser
Browser Version
Entry Page
Exit Page
User Agent String

Thanks


RE: Capture user Information and store in Database - mwhitney - 03-09-2015

Some of this information can be retrieved via the User Agent class ( http://www.codeigniter.com/userguide3/libraries/user_agent.html ), but be aware that the availability of some (or all) of it will be dependent on values the user can control. The IP Address can be found in the input library ( http://www.codeigniter.com/userguide3/libraries/input.html ). The entry/exit pages are up to you to track in the session.

In most cases, it would be more efficient to track/report this through a service like Google Analytics than to build it yourself.


RE: Capture user Information and store in Database - CroNiX - 03-10-2015

Have you looked into google analytics? It tracks all of that and a lot more...automatically.