Here is Adtracker for Adsense [use with google analytics]

Discussion in 'Guidelines / Compliance' started by tonyinabox, May 24, 2006.

  1. #1
    Adtracker for Adsense (IE & FF Supported)
    This might be posted somewhere in DP already, but I would like to post again,, at least help someone I promised I will help.

    It was a script I found on the internet for free and can help you tracking, improving the placement and see the stats in google analytics. (cool when you see the graph)

    Please note: This code is not mine and Please excuse my weak English (let's start)

    Download the script

    download here

    unzip and place in directory that you like. I suggest

    Apply code to your page

    To place the code, should place after the Google analytics code. Google analytics code should always be at the end of the page before the tag </body>.

    example:
    .
    .
    .
    <!-- Analytics Code -->
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
    <script type="text/javascript">
    _uacct = "UA-xxxxxx-x";
    urchinTracker();
    </script>
    <!-- Analytics Track -->
    <script src="http://www.yourdomain.com/js/astracker.js" type="text/javascript" charset="utf-8"></script>
    <!-- End Analytics Code -->
    </body>
    </html>
    Code (markup):
    Please note that the code above need to call the URL of your javascript that you have uploaded.

    Then on the your webpage, place the adsense code inside tag <div> container. This script track from DIV tag, not iframe. This code supported IE and FF

    Start the id in tag DIV with asc_ then after that will be your track zone or placement name. This help you to identify which ads your visitors click!

    You can use any name like asc_header, asc_under_corner, asc_page1, asc_thankyou and so on.

    example:
    <div id="asc_Zone_A">
    <adsense code>
    </div>
    Code (markup):
    OH MY GOODNESS. IT'S DONE FOR THE CODE.

    Setting your Google Analytics
    Need to be careful here. I suggest you try to use Analytics more so you can understand how does it work.

    - Login to your Google Analytics account.
    - Choose the profile for the site you want to track and Edit the setting.

    Screen shot:
    (If you use google adwords, the theme will be greenish, analytics will be orangeinsh)
    [​IMG]

    Then edit the goal. If you don't have one, just click edit at G1

    - Set the goal URL to /asclick (don't use other URL)
    - Goal name can be anything. For me is AdClick
    - Set Active Goal: On
    - Scrolling down to click Save Changes

    Screenshot:
    [​IMG]

    OH MY GOODNESS. IT'S DONE FOR ANALYTICS SETTING.


    Sample Stats

    Waiting for a few hours or a day to see the stats. Do not compare with Adsense stats because time to display the stats is different and not all clicks can earn money since Google adjust money and invalid clicks all the time.

    The purpose for this script is help you find out what page , what keyword, what ads, which zone or area your visitors click.

    Track where your visitors who clicks the ads come from and so on.

    At lease you know which ads your visitors like to click ;)

    On Dashboard > Conversion summary

    This help you to find out if you got more clicks and how many percent you have click from all visitors.

    screen shot:
    [​IMG]

    continue below,,, can't post more images.
     

    Attached Files:

    tonyinabox, May 24, 2006 IP
    e10 and cormac like this.
  2. cormac

    cormac Peon

    Messages:
    3,662
    Likes Received:
    222
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is the point Im having issues with as its coughing up my main site stats and not the Blog.

    Thanks for the above code.
     
    cormac, May 24, 2006 IP
  3. tonyinabox

    tonyinabox Peon

    Messages:
    1,988
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #3
    On Dashboard > Marketing summary

    This help you to find out what is the top 5 your clickers come from. What is the top keyword your clickers like to click.

    screen shot:
    [​IMG]

    On All reports > Marketing optimization > Goal conversion tracking

    OMG my stats is decreasing

    Screen shot
    [​IMG]

    Then you can see more in
    On All Reports > Content Optimization > Goals & Funnel Process

    Look for keyword, page, path, referer

    I can't post more images because the dimension is over the limit.

    So just try and find out where you can see those important informations.

    Ask if you have any question. Many people here use it and know it and I'm here to answer too.

    Good luck
     

    Attached Files:

    tonyinabox, May 24, 2006 IP
  4. Mong

    Mong ↓↘→ horsePower

    Messages:
    4,789
    Likes Received:
    734
    Best Answers:
    0
    Trophy Points:
    235
    #4
    Hey tony,
    Currently i am using javascript tracker which uses IFRAME.
    But its not very accurate.

    Do you think tracking from div layers can be more accurate ?
    If yes then why?
     
    Mong, May 24, 2006 IP
  5. Mong

    Mong ↓↘→ horsePower

    Messages:
    4,789
    Likes Received:
    734
    Best Answers:
    0
    Trophy Points:
    235
    #5
    And how it can track "what ads" ????
     
    Mong, May 24, 2006 IP
  6. tonyinabox

    tonyinabox Peon

    Messages:
    1,988
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I am not sure, but at least this is fully FireFox supported which the iframe script can't do.
     
    tonyinabox, May 24, 2006 IP
  7. tonyinabox

    tonyinabox Peon

    Messages:
    1,988
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I believe every websites has the same ads many many times. You would see the same ads show on your website

    The stats show exactly like

    /asclick/Zone_F/www.GetMusicFree.com
    /asclick/Zone_Nav_Link/Song Lyrics
    /asclick/Zone_Nav_Link/Song List


    So you know the ads is from www.GetMusicFree.com on Zone F

    So go to your page you place ads on zone F and see if your find any ads from www.GetMusicFree.com

    and you know thet visitors click on the ads with keywords "Song Lyrics" and "Song List"

    This tell you so manythings
     
    tonyinabox, May 24, 2006 IP
  8. e10

    e10 Well-Known Member

    Messages:
    2,250
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    185
    #8
    Thanks Tony ;)
     
    e10, May 25, 2006 IP
  9. kimi

    kimi Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    thank you for sharing!
     
    kimi, May 25, 2006 IP
  10. teckie

    teckie Peon

    Messages:
    102
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    thanks! this is really useful =)
     
    teckie, May 27, 2006 IP
  11. superclick

    superclick Peon

    Messages:
    369
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thanks. I'll try it.
     
    superclick, May 27, 2006 IP
  12. whitespider

    whitespider Peon

    Messages:
    337
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Does anyone know a good reliable package for those of us who dont have Analytics yet?

    Tony - do you know if this will work without the Analytics code?

    Good thread by the way Tony
     
    whitespider, May 27, 2006 IP
  13. tonyinabox

    tonyinabox Peon

    Messages:
    1,988
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #13
    No, it doesn't work without analytic code.

    You will need to modify to send you an email each time visitor click or insert a record to database.

    If I have time I might help to modify the code.
     
    tonyinabox, May 27, 2006 IP
  14. benc007

    benc007 Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Does this code tell you which specific ads were clicked, ie. the URL the user was directed to after clicking the AdSense ad?
     
    benc007, Jul 18, 2006 IP
  15. tonyinabox

    tonyinabox Peon

    Messages:
    1,988
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    0
    #15
    no, i am not sure how adwords ads work, but sometime this tracker give you the url, keyword, or sitename.
     
    tonyinabox, Jul 18, 2006 IP
  16. aguyforyou

    aguyforyou Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    hey i using blogspot, what know?

    where to upload the file?

    please reply me....
     
    aguyforyou, Jan 16, 2009 IP
  17. farhajr

    farhajr Well-Known Member

    Messages:
    2,108
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    130
    #17
    I did not get the iframe part and the javascript part; what exactly it does there.. please explain it to me!
     
    farhajr, Jan 16, 2009 IP
  18. player82

    player82 Active Member

    Messages:
    389
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #18
    Is it according to TOC
     
    player82, Jan 17, 2009 IP
  19. SaurabhMit

    SaurabhMit Active Member

    Messages:
    455
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #19
    this is a 2 year old thread...
     
    SaurabhMit, Jan 17, 2009 IP
  20. farhajr

    farhajr Well-Known Member

    Messages:
    2,108
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    130
    #20
    are there any other codes available better than this one in the market for adsense!
     
    farhajr, Jan 17, 2009 IP