SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Internet Business Optimizer KCgame's Avatar
    Join Date
    Mar 2005
    Location
    Singapore
    Posts
    935
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Monitoring how many clicks on a banner

    Hi all,

    Is there a way to code in php (or javascript..) to allow me to save the number of clicks on a banner into a flat file / database?

    I have a banner rotation in my site and I would like to monitor how many people have clicked on the banners to my advertiser's site. Is this possible?

    Any help / advice will be greatly appreciated.
    Thank you.

  2. #2
    SitePoint Evangelist tetsuo shima's Avatar
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    597
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    It depends on how your banner works, but the simplest thing to do, as far as I can see, is to redirect your users to a php page on your website with the name of the affiliate in the query string. Then use this info to increment your click count and finlay redirect your user to the affiliate website.


  3. #3
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi, what you can do is have a counter page so that the page counts the click from the referrering banner and increments the number related to the id of the referrer, then redirects the user accordingly.

    EDIT: Dang, beaten to it!
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  4. #4
    SitePoint Evangelist tetsuo shima's Avatar
    Join Date
    Oct 2005
    Location
    Switzerland
    Posts
    597
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by spikeZ
    EDIT: Dang, beaten to it!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •