Solved

Need custom cgi script

Posted on 1997-05-29
5
199 Views
Last Modified: 2013-12-25
We are in the need of a script that will allow our clients to place our banner on their site and receive a commision for every sale that is refered from there site. We have seen this program in operation on numerous sites but have been unable to find a turnkey package. Where can I find this program? Will I need to have someone write it for us? Any information would be greatly appreciated. Thank You in advance.

Lee Lovvorn
LAL Communications
0
Comment
Question by:lovvorn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:pluim
ID: 1828127
This is not as simple as it seems, even though
the technical implementation is about 5 minutes work if you
want to keep things simple.

The problem is that not every access to your site will result
in a sale. This means every time a user comes to your site
from a client site, you have to log this information.
This info then has to be cross-referenced with your sales
records.

The banner (some image I assume) will contain a link to
a CGI program on your site. This program will run when
the user clicks the banner, and does the following:
1. Log the 'clientid' (probably IP address) and refererer site
(client site).
2. Foward one of your HTML pages to the (potential) customer.

Whenever a sale is made, you have to store the IP address
of the client in order to trace from which site the user came.

If you want to do the sales/log check manually, then any
competent C/C++/Perl/Java/whatever programmer can write
this program in say 10 minutes.

If you want the information to be stored in a decent database
and then perform the checks automatically, well, depending
on the platform/software this can involve a week of development.

Some intermediate solution is possible, but it all depends
on the logging of your sales.
This is why you won't find a turn-key package. There are
some programs available, but they also require you to use
_their_ shopping card/sales system.

If you can give any info on how sales records are maintained,
I might be able to give some more pointers.

One more option - if you have your own webserver, you don't need a CGI program. Simply extract the appropriate info from
the server log files, i.e. collect the IP adress of user & Refererer site info for all requests to the page the banner
points to.
Or talk to the webmaster of your site.

0
 

Accepted Solution

by:
jlederer earned 50 total points
ID: 1828128
A very simple solution might be:

Make the "A HREF=" tag's (the one at your client's site) URL point to a cgi script at your site. This cgi script would save the HTTP "referer" parameter in a cookie that is stored on the user's computer or a state variable passed as a hidden field in your forms. When a sale is made, just refer to this value to credit the correct client.
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1828129
Hello,

the problem with both solutions is this:

say i am lovvorn; i have set up the appropriate CGI, store the infos correctly, at the end of the month i know that Client_A braught me 100 users who made an order;
now i pick up the phone and call Client_A and tell him: "hello, nice month isn't it, you braught me 75 users who made an order, so i owe you 750$"!!

So the real problem here seems to be how to set up a method that works for the Client as well.

The only way that comes to mind (well, to my mind:) is that the log happens on the Client side, 'cause you will anyway get an order.
This involves mirroring some pages (at least the order page) to the Client's web server machine.
When a user submits an order, that order is first logged into the Client's log file, then is sent to you for processing.

This may be or may not be possible, depending on how complex is the ordering part of your site.

Anyway, my two cents...

Cheers, julio
0
 
LVL 4

Expert Comment

by:pluim
ID: 1828130
Julio, don't automatically assume companies lie, cheat or steal
from their clients.
Your point is valid, but falls into the category of
unsolvable problems - there is no way for the client to check
whether a site visit results in an order, unless a third trusted
party sets up a tightly secured logging system tied in to
the sales system. Very cumbersome, very expensive.
So why bother with it?
Remember, it is in the company's interest to pay their clients
for including their banner. If the clients never see any money,
they won't bother to include the advertisement/link any more.

This is a case of symbiosis, not parasitism.
(mmm, paraSite-ism, nice pun).

0
 
LVL 5

Expert Comment

by:julio011597
ID: 1828131
Well, i really didn't mean to assume anything.
Just wanted to show what the Client point of view could be - or, should be!

So why bother with it? Because the two parts are to stipulate a contract: what would you write in it? "You may trust me"?!

Of course, everything with a grain of salt, but note that Mr. lovvorn signed as 'LAL Communications', which leads to some presumptions.

Rgds, julio
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question