### [WPForms + AffiliateWP: How to Add Form Referral Tracking](https://wpforms.com/affiliatewp-wpforms-how-to-add-form-referral-tracking/)

**Published:** August 30, 2022
**Author:** Editorial Team

**Excerpt:** Looking to track referrals to your WordPress forms?

AffiliateWP is the leading plugin for recruiting, tracking, and managing affiliate marketing in WordPress, and it combines seamlessly with WPForms, the leading WordPress form plugin. 

In this article, we'll cover all the steps to using them together effectively. 

**Content:**

Looking to add referral tracking to your WordPress forms as part of an affiliate marketing program?

Affiliate marketing is a great way to pull referral traffic to your forms and generate more leads and make more sales.

Thankfully, this is pretty simple to do in WordPress if you have the right plugins.

In this article, we’ll show you how to add referral tracking to your forms without touching a single line of code.

[Create Your WordPress Form Now](https://wpforms.com/pricing/)

### Why Should You Use AffiliateWP + WPForms?

AffiliateWP is the leading WordPress affiliate marketing plugin. In our detailed [AffiliateWP review](https://wpforms.com/affiliatewp-review/), we’ve shown why this is true.

With AffiliateWP integrated with your website, you’ll be able to onboard new affiliates to promote your products, track the referrals they send you, and easily send payouts.

If there are forms on your site that aren’t converting well enough, one strategy to fix that is to get your affiliates to send referrals to those forms. But this is only practical if your forms allow referral tracking.

This is where WPForms comes in. WPForms integrates seamlessly with AffiliateWP, allowing you to accurately track referrals for each form you’re running an affiliate program for.

You can use this trick to get more traffic to your order forms or even to your survey forms if you’d like. Then you can set a commission for your affiliates so that they get paid for each referred user that submits your form.

In the next section, we’ll walk you through setting up AffiliateWP and WPForms, with all steps covered.

## WPForms + AffiliateWP: How to Add Form Referral Tracking

### Step 1: Install WPForms

![The WPForms homepage](https://wpforms.com/wp-content/uploads/2023/05/WPForms-1200-Templates.png)

First things first, you’re going to need a WPForms installation on your website. Any WPForms plan will work with AffiliateWP, but we’d recommend going with [WPForms Pro](https://wpforms.com/pricing/), as it provides all the features small businesses need to build powerful forms, at an affordable cost.

If you don’t know how to install plugins or need a refresher, check out this guide to [installing WordPress plugins](https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/).

Once you’ve installed WPForms on your website, the next step is to get AffiliateWP.

### Step 2: Install AffiliateWP

[![AffiliateWP home](https://wpforms.com/wp-content/uploads/2022/08/affiliatewphome.jpg)](http://affiliatewp.com)

If yours is a small, one-site project, you can get started with [AffiliateWP Personal](https://affiliatewp.com/pricing/) plan at $149.50 per year. This plan offers all the features you need to run an affiliate program and works perfectly with WPForms to enable referral tracking for forms.

[Install and activate this plugin](https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/) on your website. Now we can get to the really important bits: creating a WordPress form with referral tracking integrated.

### Step 3: Enable The AffiliateWP + WPForms Integration

In the WordPress dashboard, navigate to **AffiliateWP » Settings.**

![AffiliateWP settings](https://wpforms.com/wp-content/uploads/2022/08/AffiliateWP-settings-1.jpg)

Scroll down and click **Launch Setup Wizard** to get started.

![Setup Wizard](https://wpforms.com/wp-content/uploads/2022/08/Setup-Wizard.jpg)

The Setup Wizard is intuitive, and you won’t need to do much here. Still, we’ll walk you through the process.

First, you’ll be prompted to enter your AffiliateWP license key which you can find in your AffiliateWP account.

![affiliatewp license key field](https://wpforms.com/wp-content/uploads/2022/08/affiliatewp-license.jpg)

Next, you’ll need to choose from the available AffiliateWP integration types. In this case, you’ll want to choose **Form Integrations**.

![affiliatewp form integrations](https://wpforms.com/wp-content/uploads/2022/08/affiliatewp-form-integrations-2.jpg)

Then choose **WPForms** and click **Continue**.

![affiliatewp wpforms integration](https://wpforms.com/wp-content/uploads/2022/08/affiliatewp-wpforms-integration.jpg)

On the next page, you can choose a currency.

![affiliatewp currency](https://wpforms.com/wp-content/uploads/2022/08/affiliatewp-currency.jpg)

You can also set the affiliate commission rate for referrals. Click **Save and Continue** to move on once you’re done.

![referral amount](https://wpforms.com/wp-content/uploads/2022/08/refferal-amount.jpg)

One thing to keep in mind here is that you can opt to use a flat-fee structure if you prefer.

Next, you can change the referral link structure and adjust the number of days a referral link will remain valid. You shouldn’t need to make too many changes here.

So, again, click on **Save and continue**.

![referral link structure](https://wpforms.com/wp-content/uploads/2022/08/referral-link-structure.jpg)

Then click on **Finish the Setup and Exit Wizard**.

![finish setup affiliatewp](https://wpforms.com/wp-content/uploads/2022/08/finish-setup-affiliatewp.jpg)

Now your WPForms will be integrated with AffiliateWP.

The next step will be creating a new form and adding referral tracking to it.

### Step 4: Add Referral Tracking to a Form

Creating a form with WPForms is straightforward. There are [2,100+ form templates](https://wpforms.com/templates/) to choose from, all of which are customizable using an easy drag-and-drop builder.

To create a new form in WPForms, navigate to the WordPress dashboard and click through **WPForms » Add New**.

![add new form](https://wpforms.com/wp-content/uploads/2021/11/add-new-form.png)

This will open up the template library. For this guide, we’ll just choose the **Simple Contact Form** template, but you can use whichever template you’d like.

![simple contact form template](https://wpforms.com/wp-content/uploads/2021/10/simple-contact-form-template.jpg)

Now we have a form to work with.

In this example, we’ll add payment fields to our form and assume a percentage-based commission for affiliates. For this, AffiliateWP requires that we add a Total field to our form so that it can calculate the commissions earned by your affiliates for form referrals.

From the form fields on the left, scroll down to the **Payment Fields** section. Drag and drop the **Total** field onto your form.

![total field payment](https://wpforms.com/wp-content/uploads/2022/08/total-field-payment-1.jpg)

**Note:** If you’re using a flat-fee commission structure, the Total field won’t be necessary as all referrals will generate the same fee.

The next thing to do is add referral tracking to your form. To do this, head on over to the panel on the left of the page. Click on **Settings.**

![wpforms form settings](https://wpforms.com/wp-content/uploads/2022/08/wpforms-form-settings-1.jpg)

Then click through **General.**

![WPForms form settings general](https://wpforms.com/wp-content/uploads/2022/08/WPForms-form-settings-general.jpg)

Now on the settings on the right-hand panel, scroll down to find the **Advanced** section and click on it.

![WPForms settings general advanced](https://wpforms.com/wp-content/uploads/2022/08/WPForms-setings-general-advanced.jpg)

Toggle on the **Enable referrals** button.

![enable referrals](https://wpforms.com/wp-content/uploads/2022/08/enable-referrals-3.jpg)

One last thing to do before you’re done in this area is to determine what type of referral to track. By default, this will be set to **Sale**, but you can set it to **Lead** or **Opt-In**, if you’d like to [pay your affiliates per lead](https://wpforms.com/howt-to-set-up-pay-per-lead-affiliate-program-wordpress/).

For this guide, we’ll go with **Sale**.

![referral type](https://wpforms.com/wp-content/uploads/2022/08/referral-type.jpg)

Now, your new form will be set up to track referrals. **Save** your form and add it to a page using the embed tool. If you’re not sure how to do that, see this guide on [embedding a form with WPForms](https://wpforms.com/how-to-add-wpforms-to-a-page-in-wordpress/).

There’s just one more thing to do at this point, and that’s publishing your Affiliate Area page on the frontend of your site.

### Step 5: Publish Your Affiliate Page

You can add affiliates manually, but it’s easier to let them sign up by themselves. AffiliateWP supports this with a dedicated page called **Affiliate Area**.

![Affiliate area](https://wpforms.com/wp-content/uploads/2022/08/Affiliate-area-3.jpg)

Here’s what it looks like on the frontend:

![affiliate area](https://wpforms.com/wp-content/uploads/2022/08/affiliate-area-1.jpg)

The page comes prebuilt and configured.

All you have to do is it to your site’s navigation menu or share it with prospective applicants privately.

Now, AffiliateWP will count it as a referral conversion every time a visitor submits your form after visiting it through your affiliate’s referral link.

To manage referrals, simply navigate to the referrals section on the backend, by clicking through **AffiliateWP » Referrals**.

![referrals dashboard](https://wpforms.com/wp-content/uploads/2022/08/referrals-dashboard.jpg)

You’ll see a list of all the referrals for your forms and any other pages that you’ve received from your affiliates. Remember to approve the referrals by clicking **Accept**.

![approve referral](https://wpforms.com/wp-content/uploads/2022/08/approve-referral.jpg)

You can then proceed to pay your affiliates for the commissions that they’ve earned. See this doc guide by AffiliateWP on [paying affiliates](https://affiliatewp.com/docs/how-do-i-pay-affiliates-if-i-have-a-personal-plus-license/) for more details.

And that would be it! We’ve shown you how to set up form referral tracking to your WordPress forms allowing you to open up your forms to a whole new audience from affiliate sites.

### Next, Map The Customer Journey

Knowing how users behave from the moment they land on your website to the moment they leave could provide useful data to improve your business decision-making. That’s what user journey mapping is about.

Would you like to learn how to do this effectively? Start with our guide to [user journey mapping](https://wpforms.com/user-journey-mapping/).

Are you ready to build forms with powerful referral-tracking features? Get started today with the easiest WordPress form builder plugin. [WPForms Pro](https://wpforms.com/pricing) includes lots of free templates and integrations with popular email marketing services and CRMs. It also offers a 14-day money-back guarantee.

[Create Your WordPress Form Now](https://wpforms.com/pricing/)

If this article helped you out, please follow us on [Facebook](https://facebook.com/wpforms) and [Twitter](https://twitter.com/easywpforms) for more free WordPress tutorials and guides.

**Categories:** Integrations

**Tags:** affiliatewp, WPForms

---

