Reputation: 1
We have a sponsorship system in our website. A person A is a member of our website. A can invite B. If B joins our site, we will give referral points to A.
My problem: how will I track when B joins our website that B was invited by A?
We are sending invitations through email via a link to the signup page for our website.
A secondary problem: how do I tell A if B is already a member of our website? And what if A wants to invite all of his friends from any mailer system like Yahoo or Gmail?
I'm very confused so if anyone can clear at least one point up, it is a great help for me. Thank you so much for your time and attention.
Upvotes: 0
Views: 108
Reputation:
Every member should have their own invitation link, so every time some new users register with your site via the member invitation link, the script adds some points to the invitation link owner.
Upvotes: 1
Reputation: 8020
There are two basic ways:
First
You create a unique referal ID that is beeing stored in db with all the dat, meaning, it contains who sent the email, when, etc. After that, you just give the ID to a link, that has to be used
Second
This is simpler, you just privide the user_id as your referal ID in the link sent to person B. This way you don't need to store anything in your db.
Upvotes: 1
Reputation: 3730
Two options I can think of:
Upvotes: 0