Hello,
I am trying to track the keywords that people arrive at my page through Google.
I'm using the ServerVariable HTTP_Referer from which I can extract the keywords.
The reason I am doing this is to use PayPal's custom field to insert the keywords, so I'll know what someone has typed into Google and gone through a purchase.
My issue is I'll need to store the keywords in a cookie, just in case the visitor doesn't buy intially or goes to another site or page before coming back to buy.
So my question is twofold:
1. Will I need to check for the existence of the cookie each time the visitor comes to the site?
2. Will I need to check that the cookie has been updated (perhaps they have searched Google using new keywords)
Thanks.
MC.
I am trying to track the keywords that people arrive at my page through Google.
I'm using the ServerVariable HTTP_Referer from which I can extract the keywords.
The reason I am doing this is to use PayPal's custom field to insert the keywords, so I'll know what someone has typed into Google and gone through a purchase.
My issue is I'll need to store the keywords in a cookie, just in case the visitor doesn't buy intially or goes to another site or page before coming back to buy.
So my question is twofold:
1. Will I need to check for the existence of the cookie each time the visitor comes to the site?
2. Will I need to check that the cookie has been updated (perhaps they have searched Google using new keywords)
Thanks.
MC.