开发者

Unique links for affiliates

Have started a site but wondering whether anyone had any ideas on how to do the following.

  1. Create a page so that people can signup as affiliates and a unique link is provided to each affiliate so that the affiliate can post their unique link onto websites, forums etc in order to encourage membership to my site.

  2. Also once people have gone thru a unique link and then signed up as members, how can 开发者_如何转开发I track which affiliate delivered the member.

Thanks


The easiest way is to have the person sign up with your site and save their information in the database. The primary key of their user record in your datbase is unqiue. You could pad that for security purposes then give that to the user in the url to your signup page.

For instance: signup.php?referrer=XXXXX-userid-XXXXX would be the link you give out to the user once they signed up.

When they stick that on their own site and new users click on it, you can use $_GET['referrer'] to get the ID from the URL and then look up which user that belongs to.

Obviously this is a very simple example, but hopefully you get the jist.


With Drupal there's always a good chance someone has already made a module for what you want. I haven't tried any of these personally, but the user referral module looks promising, and there are several other results if you search the modules on their site for "referral" or "affiliate." Even if they're not exactly what you want, existing modules are usually a much better starting place than starting completely from scratch.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜