开发者

logging incoming traffic from google Sponsored Links clicks

开发者 https://www.devze.com 2022-12-17 20:25 出处:网络
a client asked me to write a script that will log visitors reaching hs site via google adds (Sponsored Links).

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?


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

  • How do I link my Google Analytics account to my AdWords account?
  • How can I import my AdWords cost data?
  • What is auto-tagging and how will it affect my ads?

Edit:

  • To display Google Analytics data in your site: Google Analytics Developer Docs. (Check the Data Export API)
  • To track visitors IP address: View Visitor IP Address in Google Analytics


There are a variety of other analytics services that you can use, including Mixpanel, KISSmetrics, and Heels Conversion Tracking.

By far the easiest way to just log them is to use your regular server (Apache or Ngnix) logs and manual tagging, whereby you append special parameters to your destination URL like so: http://stackoverflow.com/?utm_source=google&utm_medium=cpc&utm_term=Logging%2BPaid%2BSearch&utm_content=Question%2B1&utm_campaign=StackOverflow%2BQuestions

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号