a client asked me to write a script that will log visitors reaching hs site via google adds (Sponsored Links). the idea is to keep track of: 1.users ip 2. what add they clicked 3. what key words they submitted in the Google search that led the them to the result page in which that add was displayed
i will attempt that in php. are there any "tools" at my disposal (objects, constants etc) that can be used to accomplish this?