gi11ies
Programmer
- Mar 26, 2002
- 52
Hi
I have added some tracking onto the home page of my web site, just so that I get very basic information (IP, time, browser, version, aol or not, platform) and I'm wondering if there is a way in which I can get the refferer page ... or the page that the visitor was on before visiting my site ... the code I use so far is ...
Dim strConnection7 As OleDbConnection
Dim strConnString7 As String
strConnString7 = ConfigurationSettings.AppSettings("connString")
strConnection7 = New OleDbConnection(strConnString7)
strConnection7.Open
Dim strSQL7 as String = "INSERT INTO hits (hit_ip, hit_btype, hit_bversion, hit_aol, hit_platform) VALUES ('" & Request.userhostaddress & "','" & Request.browser.browser & "','" & Request.browser.version & "','" & Request.browser.AOL & "','" & Request.browser.platform & "')"
Dim strCmd7 as New OleDbCommand(strSQL7,strConnection7)
strCmd7.ExecuteNonQuery()
strConnection7.Close
I'd also like to be able to get the screen resolution .... but am unsure on this also.
Any help on how to do this, or links would be great...
Gillies
I have added some tracking onto the home page of my web site, just so that I get very basic information (IP, time, browser, version, aol or not, platform) and I'm wondering if there is a way in which I can get the refferer page ... or the page that the visitor was on before visiting my site ... the code I use so far is ...
Dim strConnection7 As OleDbConnection
Dim strConnString7 As String
strConnString7 = ConfigurationSettings.AppSettings("connString")
strConnection7 = New OleDbConnection(strConnString7)
strConnection7.Open
Dim strSQL7 as String = "INSERT INTO hits (hit_ip, hit_btype, hit_bversion, hit_aol, hit_platform) VALUES ('" & Request.userhostaddress & "','" & Request.browser.browser & "','" & Request.browser.version & "','" & Request.browser.AOL & "','" & Request.browser.platform & "')"
Dim strCmd7 as New OleDbCommand(strSQL7,strConnection7)
strCmd7.ExecuteNonQuery()
strConnection7.Close
I'd also like to be able to get the screen resolution .... but am unsure on this also.
Any help on how to do this, or links would be great...
Gillies