Parsing search engine queries in the referral string...
Need to capture google / yahoo / MSN strings and fill a local search box
shri
5:34 pm on Oct 26, 2004 (gmt 0)
We're moving huge amounts of content around and people cannot find old posts / resource listings on our site. I expect this will sort itself out in a few months when the engines refresh the site.
In the mean time, I'm looking for a javascript, either free or commercial, which will parse the referral string and hand me a variable which I can plug into a local search box.
Any tips would be appreciated.
shri
9:48 am on Oct 29, 2004 (gmt 0)
Umm.. anyone?
RonPK
3:12 pm on Oct 29, 2004 (gmt 0)
You'll need to parse document.referrer, with methods such as indexOf(), split(), substring() et cetera. It's not that hard to do :)