Welcome Guest, Not a member yet? Register   Sign In
IP Tracker Script for CodeIgniter
#1

(This post was last modified: 01-13-2015, 12:59 PM by apparasenal.)

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.
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




Theme © iAndrew 2016 - Forum software by © MyBB