SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jan 2004
    Location
    Nashville
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Tracking Clicks on a link

    I am looking for a really simply way to have text ads on my site and want to track the clicks on the ad.

    Any ideas?

  2. #2
    SitePoint Wizard chris_fuel's Avatar
    Join Date
    May 2006
    Location
    Ventura, CA
    Posts
    2,750
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Have a link that goes to a specific page, with the target link as one of the URLs, have it use the URL to increase whatever counter, then redirect the person to the actual link. Example:

    http://www.site.com/tracker.php?url=[whatever]

    which tracker.php takes on the tracking logic and passes the user onto whatever url is. Do make sure to check for sane user input though (the [whatever] part).


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
  •