[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

URL Rotator With Weighted Email Sending Capability

I want to capture contact information and then send it to members of a co-op based on how many shares they have purchased.  In other words I want to send people off of a radio ad to one URL and then have the people in the co-op immediately get the contact information and If I got 10 shares in the co-op, not only do I get the leads based on my shares, but  I want to make sure that everyone is sent the contacts that they paid for and no one is left out.  
0
4ubest
Asked:
4ubest
  • 3
  • 3
1 Solution
 
ozoCommented:
I'm not sure I understand what you are asking.
Could you give some examples of what you want to happen in what situations?
0
 
4ubestAuthor Commented:
Selling shares.. of leads that will be generated from Radio/TV ads.   If I buy 5 shares and several buy 1 share and some buy 3 shares... I want the leads that are being sent to a specific URL to be distributed so that everyone gets their order  all the 1, 3 , 5..     Previously I had done this by just giving the persons with multiple shares  multiple email addresses...  I want to distribute the leads that are generated fairly and accurately.

0
 
ozoCommented:
Do you mean that if there are 9 leads, you want to get 5 of them of them, someone else to get 3 of them, and the other person to get 1 of them?
Do you want it to be random which leads go where, or should it follow a specific schedule?
Do you need to have the distribution as close to fair as possible after each lead? or should it even out over the long run?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
4ubestAuthor Commented:
Ozo

Yes to your first statement, random with it even out over the long run for the duration of the co-op which would be until everyone got the leads they paid for.
0
 
LeeKowalkowskiCommented:
If random is acceptable, I'd use the cumulative probability:  Assuming you have 5, 3 & 1 from your example, you have a total of 9.  Therefore you generate a random number between 1 and 9, and if:

1..5 : person a.
6..8 : person b.
9     : person c

--
Lee
0
 
ozoCommented:
@shares=(
{name=>'I', bought=>5, leads=>0},
{name=>'several', bought=>1, leads=>0},
{name=>'some', bought=>3, leads=>0},
);

$longrun=100;

sub sendlead{
    my $t=0;
    my $member;
    for( @shares ){
        my $p = $_->{bought}*($_->{bought}/(1+$_->{leads})+$longrun);
        $member = $_ if rand($t+=$p)<$p;
    }
    print "send to $member->{name}\n";
    $member->{leads}++;

}
0
 
4ubestAuthor Commented:
Thank you ozo  but the numbers I gave were hypothetical ..  What language is this ?

   I was looking at  commercial URL rotators that would  be able to distribute these leads automatically to as many different email addresses as there are participants in the co-op.  
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now