How to Capture Leads Using the WP Affiliate Platform

in 3rd Party Cart Integration,Additional Resources

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

  1. 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)
  2. 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 documentation 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: Install the Contact Form 7 plugin

Step 2: Follow the Contact Form 7 plugin’s documentation to setup a contact form so your visitors can submit their details via a contact form

Step 3: Go to the settings menu of the Affiliate Platform plugin and check the “Enable Contact Form 7 Lead Capture” field then save the settings.

All done! Now when a visitor submits the contact form you configured in step2, it will capture the lead. You can view all the leads in the “Manage Leads” menu of the Affiliate Platform Software.

The captured lead details will look similar to the following screenshot:

Captured Lead Details
  • Email = The email address of the lead/visitor (the value comes from the “your-email” field of the contact form)
  • Name = The name of the lead/visitor (the value comes from the “your-name” field of the contact form)
  • Referrer ID = The affiliate ID of the affiliate who sent this visitor to your site
  • Reference = The ID of the contact form from the contact form 7 plugin (If you have multiple forms you will know which form this lead came from)


{ 15 comments… read them below or add one }

Yvette January 3, 2013 at 10:01 pm

I can’t believe it took me so long to find you! I had another affiliate program before and it was soooo difficult to implement and the terms were ridiculous when you needed integration. The support was atrocious to say the least! You have a fantastic program. I can’t believe how easy it is. Thank you! You have made my life bliss!!

admin April 9, 2012 at 5:01 am

We added an option so the “referrer ID” gets added to the contact form email body (if the user was referred by an affiliate).

admin April 6, 2012 at 5:51 am

We dumped that whole email modification thing now. Every lead just gets captured directly in the leads database. Its simpler and less hassle for customers to set it up.

Igor April 5, 2012 at 12:09 am

You did simplify this a lot, yet I’m a bit confused now. How can I receive the refferal’s id also via email as before?

I think this code had to be implemented before to the php of contact form 7

Thank you for your help

Ivy April 28, 2011 at 6:31 am
Liseth April 27, 2011 at 6:58 pm

I use gravity forms, is there a way I can integrate your plugin with these?

admin January 7, 2011 at 5:36 am

“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:

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

Phillip January 6, 2011 at 4:41 am

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 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.

admin January 6, 2011 at 3:53 am

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.

Phillip January 5, 2011 at 1:17 pm

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.

admin October 15, 2010 at 3:23 am

LOL.. Glad to know that it helped you :)

elena October 14, 2010 at 10:14 pm

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!

Ferrowtech September 13, 2010 at 5:20 pm

Thanks for the info, guys. That’s exactly i was looking for.


admin July 28, 2010 at 3:08 am

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.

Ashwin July 27, 2010 at 11:37 am


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.


Leave a Comment

Previous post:

Next post: