Forum Moderators: martinibuster
[webmasterworld.com...]
Yes there is no content in that frame
my code is like
<iframe src="code.php" frameborder=0 width=280 height=280 onFocus='logClick()'>
</iframe>
and whole this shug i have done is just to track ad clicks.
** there must be some functionality of
google_page_url = document.location;
because it's Adsense provided code.
But it seems to be not working.and my ads are irrelevant.
So, if you want to change (for example) the colour you change it in one file and all the pages are changed...
If this is what you need, then the correct way to do this is via server-side includes.
Or do you expect Google to manually go and check every single page with adsense on it?
But if you want to gamble with your adsense account then that's your business.
=======================
Sticky me and I will tell you how to track each AS click with a page tracker code. You will get data on where the click came from, which ad they clicked on. It is a regular page tracker service that is free.
To remain compliant with AdSense program policies, and also to receive relevant ads, you should place your AdSense code in your site's primary content frame.
You'll also need to use the framed-pages checkbox when generating your ad code, which will also help with targeting. For more information, read: [google.com...]
You can't put the AdSense code in a frame with no content. You need to put the AdSense code in the frame WITH the content. Even if you don't want to.