Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tracking who pulls an image

Status
Not open for further replies.

ppetree

Programmer
Mar 3, 2007
60
US
Hey All!

I need some brain power here!

I am developing an affiliate program where sites (like this one) can sign up and as an affiliate place a banner on their site and then get paid on sales of products made as a result of the click-through (a site could make about $125 per sale).

What I want to do is to keep the banners on my site and track the effectiveness of the affiliate sites and the various banners by tracking the number of times a banner is pulled and which affiliate site is doing the pulling.

I was thinking that a url containing an asp page my do the trick. Something like
Inside my asp I could serve the file by setting the mime type etc., then afterwards open a database, write the info and close-up. In my wetest dreams I could see 1000 affiliate sites serving this up. Does anyone see a problem with this solution or perhaps a better way of handling this?

Thanks,

Phil
 
Ok, I wrote the code... it fits inside the img tag and is called like this:

<img src=" alt="SEO Text">

It looks up the banner to serve based on the type, feeds the image stream down to the browser where it renders the image and then logs the request according to whomever the id belongs to.

If anyone else hits this problem, email me and I'll help you out!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top