I've started to notice that my website is receiving a lot more "random" visitors from Google; i.e people typing in peculiar searches and my site ranking highly in the search results.
#1 What I would like to do is put some code in my header.php file which detects whether a user has arrived on my site from Google. (And if so, I can display a nice message for them, welcoming them specifically based on this - I like the personal touch.)
#2 In an ideal world I would also like to be able to write their search criteria to the page (something like "You searched on Google for [search string]"). eg if they had searched for 'devnetwork', their Google URL would be http://www.google.co.uk/search?sourceid ... devnetwork - so in the message I display on the page, I would like to be able to say "You searched on Google for devnetwork".
If anyone can give me some pointers for #1 I'd be very appreciative. #2 is way above anything I'm capable of at present, so if anyone fancies the challenge of writing it for me, or just pointing me in the right direction, I'd be forever grateful!
Thanks,
Neil