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

#1
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
to.

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

Code:
`id` int(11) NOT NULL AUTO_INCREMENT,
 `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: 405)
Proprietor and Developer:

http://app-arsenal.com
http://senhosting.com
Reply

#2
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?

Thanks
Reply

#3
how to implement iptracher .php in my codeigniter application
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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