Hi everyone,
Thanks for the help. I ended up using Chris's example. It didn't work at first so I changed the code. Here is the finished jQuery code in case anyone is interested : $(document).ready(function() { $("a.adtrack").click(function(){ //Get url of image advert var adURL = $("a.adtrack").attr("href"); $.ajax({ type: "GET", url: "adtrackingpage.asp", data: "advertURL=" + adURL }); }); }); On the tracking page, I used the following ASP VBScript : <% ' IIf implementation Function MM_IIf(condition, ifTrue, ifFalse) If condition = "" Then MM_IIf = ifFalse Else MM_IIf = ifTrue End If End Function %> <% Set Insert = Server.CreateObject ("ADODB.Command") Insert.ActiveConnection = MM_Tracking_STRING Insert.CommandText = "INSERT INTO dbo.adtracker (URL) VALUES (?) " Insert.Parameters.Append Insert.CreateParameter("varTitle", 200, 1, 50, MM_IIF(Request.Querystring("advertURL"), Request.Querystring("advertURL"), Insert__varTitle & "")) Insert.CommandType = 1 Insert.CommandTimeout = 0 Insert.Prepared = true Insert.Execute() %> Works perfectly! For those that are interested and might have a use for it in future, one of the most important factors in search engine rankings (at the moment) is direct inbound links from other websites e.g. (A - B). People using click tracking usually use a tracking page that sits between these 2 e.g. (A - C -B). In doing so, the link 'love' isn't passed on to the target URL. Using the above code, the link is left inact while tracking still occurs. Sweet! Thanks!