View Single Post
Old 01-03-2005, 10:18 PM  
kondro
Registered User
 
Join Date: Nov 2004
Location: Gold Coast, Australia
Posts: 23
Global site-independant visitor tracking and ranking.

Hi Guys,

A while ago there was a discussion on this board about the ability to track if a surfer had been to other sites and then route trades based on this information.

I have developed a service (still in Alpha but requiring testing) that does just this. At the top of your website you embed a JavaScript which tracks hits sent by this visitor and assigns the visitor a unique tracking cookie. When the visitor then goes to another site also using this JavaScript, a new hit is recorded against them in the database.

This script tracks both on a visitor cookie and the user's IP address and returns this information to the page in the form of JavaScript variables.

The script to use is:

Code:
<script language="JavaScript" src="http://66.34.235.112/jsvisit/visit.php"></script>
This JavaScript returns the following variables:

visitor24Hours
A 2 dimensional array containing the domains and number of hits this visitor has made in the past 24 hours. e.g.

Code:
visitor24Hours = new Array(new Array("domain1.com", 5), new Array("domain2.com", 3));

visitor7Days
A 2 dimensional array containing the above info but for the past 7 days.

ip24Hours
A 2 dimensional array containing the above info for the past 24 hours but instead of using the visitor's cookie, it is based on the user's IP address.

ip7Days
Same as for ip24Hours but for the past 7 days.

visitorLastMinutes
How many minutes since the visitor last hit this page.

ipLastMinutes
How many minutes since the visitor's IP last hit this page.

totalVisitorDays and totalVisitorDaysPast
The number of days (totalVisitorDays) in the past x number of days (totalVisitorDaysPast) the user has been to this website.

totalIPDays and totalIPDaysPast
Same as above but based on the user's IP address.

visitFromCountry
The name of the country the visitor comes from.

If you have any queries, please don't hesitate to drop me a line at kondro [at] gmail [dot] com

The website the visitor comes from is automatically tracked based on the referrer address.

There doesn't appear to be any problems with tracking cookies either. I have tested this code with IE6, Safari and FireFox and with standard settings, the cookies all get accepted. If not, the tracking info will still work based on the user's IP address (although I am not sure how useful this will be if the user is from AOL, etc as these IPs will probably be from proxy servers).

I am particularly interested in chatting with some trade script developers for the potential to integrate this service into their product. So, if you are a developer of such a product, I would love to hear from you about a potential partnership exclusive or non-exclusive.

Also, as this is a test service, I would not recommend putting it on large, production websites however, this service has been load tested up to about 15 million hits per day before starting to slow down.

Note, I am constantly on the lookout for programming work, if you are interested in a high-level PHP, MySQL, JavaScript programmer with some business sense, give me a holla

Thank you everyone for your time and support,

Kondro
kondro [at] gmail [dot] com
kondro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote