Ask a Question related to ASP, Design and Development.
-
Burton Figg #1
tracking visitors using asp question
I have set up a very simple site tracker.
Each page runs the following code, to insert basic details into a MySQL
database.
ref = request.servervariables("HTTP_REFERER")
str = request.servervariables("SCRIPT_NAME") & "?" &
request.servervariables("QUERY_STRING")
ip = request.servervariables("REMOTE_ADDR")
agt = request.servervariables("HTTP_USER_AGENT")
sql = "INSERT INTO _tracker (fldurl, fldref, fldip, fldagent, flddate)
VALUES ('"&str&"','"&ref&"','"&ip&"','"&agt&"',now())"
set iRS = oConn.Execute(sql)
set iRS = nothing
I was using the IP address as the unique field here, so that I could run off
a list of pages each person visits.
However the problem is that I can look at any number of IP addresses and see
that they visited the site at say, 11am, 3pm and 7pm.
It could be the case that the same person is coming back 3 times, but also
it is likely that with ISPs having a pool of IP addresses, that the IP
address I am looking at has been used by 3 people.
Do people know if there is another piece of info I could use to separate out
the 3 IP addresses, in order to differentiate them? I'm also adding in to
the databse the HTTP_USER_AGENT but this won't be foolproof as a way to
split the same IP address up into possibly 3 different users as a lot of
people have the same browsers / OS.
Some site trackers are able to list the domain a person is visiting from -
am I able to get this information using ASP?
I have had a good trawl through the standard server variables list - where
you loop through to see all the variables using 'for each sv in
request.servervariables' but have not found anything of much use other than
those I listed above.
Thanks
Jim
============
[url]www.jimpix.co.uk[/url]
Burton Figg Guest
-
InDesign tracking vs. Quark tracking?
Hi Anne Marie, I would describe letter, word, and glyph scaling parameters as things the paragraph composer can fuzzy-logic work with. Fuzzy logic... -
HOW TO LET VISITORS UPLOAD
i have created a website and uploaded it onto a server. i want visitors to the website to be able to upload thier own images onto my website.DOES... -
Visitors counter
Is it possible to stack numbers in a textfile and everytime someone enters the website, add one to the number of visitors.. ? I'm pretty sure there's...



Reply With Quote

