• Home
  • About

szehau's weblog

Life, Internet, Software, Gadgets, Programming and Investments

  • life log
  • internet
  • programming
  • software
  • working holiday
  • gadget
  • project

Adsense Tracker

July 23, 2005 02:04 by Sze Hau 2 Comments

As I have promised to upload my adsense tracker script at previous post, My Adsense Tracker, finally I have finalized my codes and uploaded it here. At the time I have finished the coding and testing, I found AdsenseLogger. Em… but never mind, at least I have my own tracker.

Adsense Tracker – A tracking script that tracks adsense clicks on one’s website. Adsense tracker gives a general idea on what ad your visitor is looking for.

Adsense Tracker consists of 3 modules:

  1. Tracking scripts with multiple channels supported.
  2. A very simple login page.
  3. Report.
  4. Maintenance.

1. Tracking script with multiple channels supported:

  • Tracking adsense clicks (Ad Unit and Link Unit).
  • Support multiple channels for multiple pages/sites.
  • Track referrer’s and current page’s URL.

2. A very simple login page:

  • Since the script is for personal use only, it requires password only to login

3. Report:

  • Support different time zone by setting the time offset.
  • Group ad by Ad Unit (title only) or Link Unit (keyword only) and click count.
  • Show individual clicks.
  • Generate report based on date range.
  • Generate report based on channel.

4. Maintenance:

  • Purge old transactions to keep database small and for performance wise.
  • Channel maintenance (Add, Rename, Delete).

Requirement:

  • PHP and MySql database.
  • Basic knowledge of editing PHP script.
  • Basic knowledge of MySql’s database administration.

Installation:

  • Download and unzip to a temporary folder. It should only have the following files:
    install.php – Installation page
    login.php – Login page
    maintenance.php – Maintenance page
    report.php – Report page
    setting.php – Setting
    tracker.php – Tracking script
    tracker_js.php – Tracking script (JavaScript)
    style.css – Style sheet
  • Use text editor to open the file setting.php. Modify the parameter in the file as appropiate.
  • Upload all the files to your web’s directory so that you end up with /at/install.php.
  • Create an empty database and run the installation script, e.g. http://www.yoursite.com/at/install.php.
  • Login to Adsense Tracker at /at/login.php and create your own channel, e.g. ‘mainpage’.
  • At the PHP page where you want to track the adsense clicks, insert the following script at the bottom of your page (just before the </body> tag) –
    <?php include_once ('at/tracker_js.php'); ?>
    <?php gettracker_js('mainpage'); ?>
    * where ‘mainpage’ is the channel that you have created at previous step.

Download:

  • Adsense Tracker 1.0 – original

Note:

  • This script is intend for personal use only and not for commercial purposes. You can download, modify and use this script at your own risk.
  • Any comments are welcome.

More from my site

  • Proton SavvyProton Savvy
  • Upgraded to WordPress 2.2.1Upgraded to WordPress 2.2.1
  • Blogs Updates for March 2009Blogs Updates for March 2009
  • Bougth 2 CDsBougth 2 CDs
  • Google Adsense is ready for Christmas!Google Adsense is ready for Christmas!
  • 100% ATTITUDE100% ATTITUDE

Filed Under: project

About Sze Hau

Geek. Love programming. Coffee addicted. Married with a child. Working towards financial freedom.

Comments

  1. reallybites says

    July 23, 2005 02:13 at 2:13 am

    no demo?

    Reply
  2. szehau says

    July 23, 2005 02:42 at 2:42 am

    Sorry, no demo yet. I will try my best to make a demo with some fake data when I have time.

    Reply

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Email News Letter

Sign up to receive updates daily and to hear what's going on with us

  • Facebook
  • Google+
  • Instagram
  • Twitter

More Posts

5 Essential Things You Need To Have At Your Home During The COVID-19 Pandemic

June 1, 2021 22:15 By Sze Hau Leave a Comment

LED Downlight

Troubleshooting A Flickering LED Downlight

February 13, 2016 00:29 By Sze Hau Leave a Comment

Repair A Broken iPhone Lightning Cable

January 30, 2016 00:54 By Sze Hau Leave a Comment

Sponsored Links

Blog Network

  • Personal Fincance Personal Finance – Personal Money Tips, Stock Investment, Small Business and Make Money Online
  • Snippet IT Information technology news, ideas and experiences and opinions

szehau’s weblog

szehau is a software programmer that has strong interest in the world of programming and Internet. He is graduated in University of Malaya, Malaysia with a Bachelor’s degree in Software Engineering. He draws on his passsion for web programming to share with others how to build a successful websites.

Recent

  • 5 Essential Things You Need To Have At Your Home During The COVID-19 Pandemic
  • Troubleshooting A Flickering LED Downlight
  • Repair A Broken iPhone Lightning Cable
  • New Gadget – MacBook Pro with Retina Display (2015)
  • One Watt LED Night Light

Search

Tags

adsense advertisement baby blog blogtal Canon EOS 400D Chinese New Year Christchurch CNY DiGi electronic Facebook FBM Flickr Flickr Uploadr Google Google Maps Google Search Results Google Webmaster Central H1N1 income tax investment joke KLCI KLSE Lake Tekapo Maxis Maybank2u Motueka movie mutual funds New Zealand PC Fair 2009 Queenstown restaurant for dinner sharing stock trackback travel Twitter unit trust visa wordpress wordpress plugin working holiday

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in