1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Open Source AdSense Tracker

Discussion in 'Reporting & Stats' started by trevlar, May 6, 2006.

  1. #1
    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!
     
    trevlar, May 6, 2006 IP
    corinaw likes this.
  2. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #2
    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!
     
    Will.Spencer, May 6, 2006 IP
  3. obenix

    obenix Eats an apple a day......

    Messages:
    2,236
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #3
    obenix, May 6, 2006 IP
  4. superclick

    superclick Peon

    Messages:
    369
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Nice. I will try it for sure.
    Thanks
     
    superclick, May 6, 2006 IP
  5. opticbyte

    opticbyte Active Member

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #5
    Yeah im gonna take a test run as well. I like the simplicity of your website.
     
    opticbyte, May 7, 2006 IP
  6. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #6
    it's not against any TOS?
     
    toby, May 7, 2006 IP
  7. opticbyte

    opticbyte Active Member

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #7
    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
     
    opticbyte, May 7, 2006 IP
  8. trevlar

    trevlar Peon

    Messages:
    65
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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!
     
    trevlar, May 7, 2006 IP
  9. trevlar

    trevlar Peon

    Messages:
    65
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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.
     
    trevlar, May 7, 2006 IP
  10. kimi

    kimi Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Very good! exactly what I am looking for. thanks! :)
     
    kimi, May 7, 2006 IP
  11. Stephen68

    Stephen68 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    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
     
    Stephen68, May 7, 2006 IP
  12. trevlar

    trevlar Peon

    Messages:
    65
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #12
    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.
     
    trevlar, May 7, 2006 IP
  13. kimi

    kimi Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    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.
     
    kimi, May 7, 2006 IP
  14. siraxi

    siraxi Peon

    Messages:
    333
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #14
    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!
     
    siraxi, May 7, 2006 IP
  15. tonyinabox

    tonyinabox Peon

    Messages:
    1,988
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I love this feature. I should apply this with my script
     
    tonyinabox, May 7, 2006 IP
  16. trevlar

    trevlar Peon

    Messages:
    65
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #16
    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.
     
    trevlar, May 7, 2006 IP
  17. kimi

    kimi Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    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?
     
    kimi, May 8, 2006 IP
  18. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #18
    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 :)
     
    JamesColin, May 8, 2006 IP
  19. kimi

    kimi Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    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. ;)
     
    kimi, May 8, 2006 IP
  20. trevlar

    trevlar Peon

    Messages:
    65
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #20
    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.
     
    trevlar, May 8, 2006 IP