Tracking links

Results 1 to 2 of 2

Thread: Tracking links

  1. #1
    Join Date
    Dec 1969

    Default Tracking links

    Hi,<BR><BR>In our web application we have an ASP page which has few links. We need to implement a new logic to track these individual links. For instance, if User1 clicks on Link1, and Link3 the new logic should store this information in Oracle database as follows.<BR><BR>User1 Link1 06/10/2002<BR>User1 Link3 06/10/2002<BR><BR>I was wondering what would be the best logic. I really appreciate any suggestions.<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Tracking links

    &#060;A HREF="link.asp?"&#062;<BR>&#060; A HREF="link.asp?"&#062;<BR>...<BR ><BR>******** link.asp **********<BR>&#060;%<BR>... make your connection ...<BR>url = Request("url")<BR>SQL = "INSERT INTO linkClicksTable (userId, linkTo, when ) " _<BR>&nbsp; &nbsp; & " VALUES(&#039;" & Session("userID") & "&#039;,&#039;" & url & "&#039;,&#039;" & Date() & "&#039;)"<BR>yourConnection.Execute SQL<BR>Response.Redirect "http://" & url<BR>%&#062;<BR><BR>*************<BR><BR>Dirt simple.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts