views:

68

answers:

1

hello to all, 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?

thanx in advance -:)

A: 

Are you aware that Google Analytics can be configured to track AdWords clicks?

Edit:

Carlos Gutiérrez
thank you for your answer.i have two follow-up questions regarding your post:1. is there some sort of api through which i can get the data collected by google analytics and display it in my own site?2. can google analytics display the client's IP?thanx again -:)
samoyed
1. Yes: http://code.google.com/intl/es-MX/apis/analytics/docs/ 2. Not directly but possible: http://www.roirevolution.com/blog/2006/09/view_visitor_ip_address_in_google_analytics.html
Carlos Gutiérrez
thanx again, Carlos.
samoyed