• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IP Tracker Script for CodeIgniter

This is a simple CI script to track website visits.

This library will record IP address, web pages they opened and the time they visited your website.

You can extend the script to include tracking the User Agent of the user visiting your website. I did not include it in the code since I didn't find it useful for my purpose. The sole purpose why I wrote this script is for me to know how many site visits I am getting everyday and from what IP's they belong

Kindly create a table in your database with the following columns:

 `ip` varchar(15) NOT NULL,
 `page_view` text,
 `date` int(11) NOT NULL,

How to use: Simply load the library in application/config/autoload.php
under autload library line.

That's it no need to call the function in each of your controller file.

Thank you.

Attached Files
.php   iptracker.php (Size: 1.71 KB / Downloads: 518)
Proprietor and Developer:


Hey happy new year!
I wonder how this works.Does the script is linked to a dashboard from where you can see data?
Also i have another question :how to track codeigniter within Wordpress?I m operating a Wordpress site and i need to track the "thankyou" pages.Codeigniter app is installed and one needs to login separately in it .The "thankyou" pages are located within codeigniter and they dont get tracked by Google Analytics through any plugin.Do you have any suggestion how to track the "thankyou" pages in GA?


how to implement iptracher .php in my codeigniter application

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.