Hello.
I'm tyring to track our online sales to the exact url that brought them to the website. In the past we used a drop down menu on the registration page to ask them the referral. Unfortunately these options were too vague.
So I'm trying to capture the referral URL throuh code. I figured a global.asa would be the best place to place this code. Here is what I tried:
Sub Session_OnStart
Session("referral") = request.servervariables("HTTP_REFERER")
End Sub
I've never used a global.asa, so perhaps some syntax is incorrect. When I try to display the session variable on the next page for testing purposes, the session variable is empty. I've tried it with cookies as well with the same result. It's as if the global.asa variables are not recognizing my domain when they are set. Anyone have any idea what is wrong, or does anyone know another way to accomplish this? Thanks.
I'm tyring to track our online sales to the exact url that brought them to the website. In the past we used a drop down menu on the registration page to ask them the referral. Unfortunately these options were too vague.
So I'm trying to capture the referral URL throuh code. I figured a global.asa would be the best place to place this code. Here is what I tried:
Sub Session_OnStart
Session("referral") = request.servervariables("HTTP_REFERER")
End Sub
I've never used a global.asa, so perhaps some syntax is incorrect. When I try to display the session variable on the next page for testing purposes, the session variable is empty. I've tried it with cookies as well with the same result. It's as if the global.asa variables are not recognizing my domain when they are set. Anyone have any idea what is wrong, or does anyone know another way to accomplish this? Thanks.