The WP Affiliate Platform can be used to capture leads (potential customers) so you can award the appropriate commission to the referrer later once you have made some money from the lead.
The WP Affiliate Platform can be setup to be used with the following two types of Pay Per Lead affiliate model
- You pay the referrer a commission for every lead that the affiliate sends your way (the commission is awarded when the lead takes an action on your site e.g. submits a contact form)
- You pay the referrer when you make actual money from the lead that the affiliate sent your way (the commission is awarded when a sale is made to that lead later). For this model you need to capture the lead so you know who originally referred that lead. This allows you to award the appropriate commission later.
This page explains how you can capture lead using the Contact Form 7 and WP Affiliate Platform plugins
Capture Leads Using the Contact Form 7 and WP Affiliate Platform Plugins
Step 1: Setting up the Contact Form
Somewhere in your contact form’s “message body” enter the following piece of text:
[wp_affiliate_lead:reference:1:end]
1 is the a reference number (it can be anything). If you have multiple contact forms on your site then this number allows you differentiate which form generated which lead.
Step 2: Modify the code so the lead gets captured upon contact form submission
Open the “classes.php” file from the “includes” directory of the Contact Form 7 plugin and search for the following text
$headers = "From: $sender\n";
Once you find that line simply add the code given here just above that line.
All done, now when a visitor submits a contact form that has the special tag embedded in the “message body” it will capture the lead. You can view all the leads in the “Manage Leads” menu of the Affiliate Platform Software. You will be able to manually award commission from this menu once you get revenue from a lead.








{ 11 comments… read them below or add one }
Hello,
I have a question. How is the referrer ID captured in the lead?
Is it a specific HTTP Query string parameter the referrer has to pass? Please give in your inputs.
Thanks,
Ashwin
When a visitor follows an affiliate link and lands on the target site the referrer ID is stored in the Cookie with the name “ap_id”. When the lead submits the registration form you can read the referrer value from the cookie and store or send it with all the other details.
Thanks for the info, guys. That’s exactly i was looking for.
Cheers!
Has anyone told you lately that you fricking RULE!?? Just thought I would tell you.
Thanks for all the awesome work, and the SIMPLE code edits (and good explanations) to integrate your plugins with all the OTHER plugins I use.
You rock!
LOL.. Glad to know that it helped you
Anyway we can insert some code like this inside wishlist member registration page?
The reason i ask is because we have a free ecourse thats delivered using wishlist member software and I dont want to put people through the contact form then send them a link to the free ecourse to sign up again as it just wont happen.
WishList member will have to have a way to integrate with a third party lead capture software. If they have an API or some other way to integrate with a lead capturing software then this can be arranged.
I think your missing the point a little.
Wishlist member does integrate with a lead capturing software e.g aweber.
What i want to know is is it possible to offer affiliate commission on leads when there is no SALE involved but a registration directly on wishlist member.
Aff: 1222
sends a lead to for example http://mysite.com/aff:1222 and this lead is directly to my wishlist member registration form (so no cart involed- for paid clients im using wp estore)
I want to be able to pay affiliates a lead when the visitor presses SUBMIT on the membership form.
“Wishlist member does integrate with a lead capturing software” – all I need is the documentation for this so I can see how it can be integrated with the affiliate plugin.
There is an API in the affiliate plugin that can be used to capture leads but if the other software cannot notify that API it won’t work that is why I asked if WishList has the option.
If you want to award commission per form submission then all you need to do is use the commission awarding API:
http://www.tipsandtricks-hq.com/wordpress-affiliate/awarding-commission-via-http-get-or-post-189
But again the software that is handling the form submission need to notify the affiliate plugin using that API so the affiliate plugin can do its job
Why does the affiliate software need to be notified? – when someone submits a form the affiliate plugin has no idea about it because the form was created with another software which is why it needs to be notified
I use gravity forms, is there a way I can integrate your plugin with these?
Hi Liseth, I believe this is what you are looking for:
http://www.tipsandtricks-hq.com/wordpress-affiliate/gravity-forms-and-wp-affiliate-platform-integration-385