Ask YC: How can I track adsense clicks?
Is there any way to do this (assuming I'm using AdSense or ad code which is generated in an iframe?
Is there any way to do this (assuming I'm using AdSense or ad code which is generated in an iframe?
you can drill down into the google adsense iframes and modify each onclick event to have googles onclick event plus yours.
which would also require that you somehow inject your tracking function in there as well. which hypothetically add an img tag that has a url you control.
then at that url you control you could set up some file that uses GET to grab the url params you pass to it and saves them in a database...
you can do that if you're interesting baking your own solution which is probably against the TOS.
or you could just google it..and find these:
http://www.seobook.com/archives/001370.shtml
http://www.shawnhogan.com/2005/11/track-adsense-clicks-with-...