I'd like to track the keywords that a searcher has used to arrive at my site and then made a payment through PayPal.
I'd like to track this with PayPal's custom field.
For instance
'Get site referrer
sSite=Request.QueryString("HTTP_REFERRER")
'if referrer is google then create a cookie
If InStr(Lcase(sSite),"google") Then
Response.Cookies("siteRefferal")="Google"
Response.Cookies("siteRefferal").Expires=Now+365
End If
'check referrer
If Request.Cookies("siteRefferal")="Google"
'set PayPal's custom field to google
End If
Assuming the code is alright how could I attach the specific keywords as well?
Thanks.
I'd like to track this with PayPal's custom field.
For instance
'Get site referrer
sSite=Request.QueryString("HTTP_REFERRER")
'if referrer is google then create a cookie
If InStr(Lcase(sSite),"google") Then
Response.Cookies("siteRefferal")="Google"
Response.Cookies("siteRefferal").Expires=Now+365
End If
'check referrer
If Request.Cookies("siteRefferal")="Google"
'set PayPal's custom field to google
End If
Assuming the code is alright how could I attach the specific keywords as well?
Thanks.