Hello everyone, I just started an open source AdSense tracking script and I'm looking for a little feedback. You can find it at: http://www.adlogger.org (Sorry, it won't let me make it a live link yet.) Please give it a go and test it out. Thanks!
Sweet! I can't try this out now (SSH is blocked at the hotel I'm at), but I will set this up as soon as I get home!
as long as it does not modify current adsense code it is not against TOS. i have seen a few trackers out there that work by simply logging clicks using a javascript function. this function is located outside the adsense code and tracks click made inside the ad frame i believe? dont take my advice i could be wrong and i have not tested this script myself to see if this is the case. here is another one with source for example http://www.eggheadcafe.com/articles/adsense.asp
Thanks everyone! I'm having some problems with it right now... not every one is able to install it succesfully. I'm not quite sure why. The downloadable .zip contains the exact same files that I used to setup the demo version on my site. If it doesn't work for you, just be patient, I'll be working on it a lot during the next two days. Thanks again, and stay tuned!
Opticbyte is correct. It is not against terms of use. Using this script, there are two sets of code that you place on your AdSense pages. The first (the javascript) goes at the very bottom and is able to count all page views and clicks of your AdSense blocks. The second, your PHP tags, go immediately around your AdSense code to check to see if ads should be displayed or not. That is figured by checking if a user has already clicked a certain number of ads within a set time period (from a cookie that gets set on his computer when he clicks). If he already has, then your site won't show ads for that visitor any longer. So in short, no, it's not against Google terms of use, and this has been confirmed by many people, including G, itself.
Hi, Just visited the domain suggested in the pdf file - http://www.yourdomain.com/adlogger/install - but there is no list of instructions to follow. Can you help? steve
I'd be happy to. However, I think we should discuss technical problems somewhere other than this forum. We don't want it getting flooded. You can email me at contact@adlogger.org or discuss it on my forums. As for your problem, did you upload all the files correctly? It could be that you're one of the few that it's not working for. I'm still trying to figure that out. P.S. It's not technically "http://www.yourdomain.com/adlogger/install". Maybe it should read http://www.YOURDOMAIN.com/adlogger/install. Substitute "yourdomain" with your sites address. That could be the problem, too.
At first, your script couldn't create the table on my site, but I have figured it out. Another one, I think your "PHP Cookie Code Generator" will modify the adsense code and it is, off course, against the TOS.
This script will help me sleep well, by eliminating fear that someone will overclick the ads. Also, I might even consider giving the link to my website to my best friends Congrats Trevlar!
No changes are made to your AdSense code. Like I said before, the PHP tags are placed around your code. No alterations are made to the code itself.
ok, first I paste the code in the PHP Cookie Code Generator: <script type="text/javascript"><!-- google_ad_client = "xxxx"; google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_ad_type = "text"; google_ad_channel ="5981303396"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "0033FF"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Code (markup): Then I click generate button, and it produce code like this: <? if ($_COOKIE['adsclicked'] < 7) { ?> <script type=\"text/javascript\"><!-- google_ad_client = \"xxxx\"; google_ad_width = 250; google_ad_height = 250; google_ad_format = \"250x250_as\"; google_ad_type = \"text\"; google_ad_channel =\"5981303396\"; google_color_border = \"FFFFFF\"; google_color_bg = \"FFFFFF\"; google_color_link = \"0000FF\"; google_color_url = \"0033FF\"; google_color_text = \"000000\"; //--></script> <script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"> </script> <?php } ?> Code (markup): What do you think about the added backslashes?
They are not needed. Code like this would display the backslashes in the html output, which is not good. when you close php like this ?> the following shoul be normal html, even if we are between a set of {} in PHP. I didn't use such a tool before, but I'll give a go at this one if it is open source and receive good support (I have to read reviews first
Yes, I know. The backslashes are not needed and can be deleted. But, my point is, if we just copy and paste the altered code, it is might against the TOS. Just my opinion. I just leave it to the pro and google.
Thank you for pointing that out. I'm sorry I didn't catch it before. That's something I will fix right away. It automatically adds slashes every time it sees a ' or ", but that is something that is easily fixed. Thanks again, and I appreciate your input.