Tracking a user, live, on ur site

  • Thread starter -Anat-
  • Start date
  • Replies: Replies 3
  • Views: Views 5,044
A

-Anat-

Newbie
Messages
28
Location
NA
ISP
Airtel
I had a rather unique problem and I kludged together some code for it.

i wanted that somehow i get an email whenever a user with a "certain" specific useragent visits my site. so that I can sit and track the user - live as he browses through my site.....
This particular user either had a unique IP address or a unique sub-string in his user agent... In my case I used the useragent property.

solution:
I put this code in my index.php file where "@TEXT@" is the unique useragent text

Code:
now i configured my outlook to check mail every one minute from
[email protected] and play a sound when new mail arrives.. so effectively instead of sitting and monitoring the latest visitors feed all day, outlook would, within 60 seconds, inform when when this user visits my site.
 
Last edited by a moderator:
Sushubh

Sushubh

Admin
Staff member
Messages
397,316
Location
Gurgaon
ISP
Excitel
Airtel
so u love googlebot so much?
 
A

-Anat-

Newbie
Messages
28
Location
NA
ISP
Airtel
naah, not googlebot....but a "certain" somebody else!
 
Sushubh

Sushubh

Admin
Staff member
Messages
397,316
Location
Gurgaon
ISP
Excitel
Airtel
right... i now realise what ur talking abt.