How it Works

The Lightweight Affiliate Tracking Add On for Paid Memberships Pro creates unique affiliate codes assigned to your affiliate users. When someone visits your site using an affiliate URL (a code is passed to a page as a parameter), the affiliate’s cookie is set for the specified number of days. If a cookie containing an affiliate referral code is present after checkout, the order is logged in the affiliate’s account.

Affiliates can see a report of their activity by creating a page with the shortcode [pmpro_affiliates_report] (optional). The admin can view a report of affiliate activity in the admin under Memberships > Affiliates as well as add and manage affiliate codes.

You must have the latest version of Paid Memberships Pro installed.

Installation

  1. PMPro Plus members can install the add on from the Memberships > Add Ons admin page.
  2. Or, download the plugin and upload the ‘pmpro-affiliates’ directory to the ‘/wp-content/plugins/’ directory of your site.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.

View Affiliates or Set Up a New Affiliate

Admins can view active affiliates under the Memberships > Affiliates admin page.

To Set Up a New Affiliate

  1. Navigate to Memberships > Affiliates in your WordPress admin.
  2. Click “Add a New Affiliate”.
  3. This form contains the following fields/settings:
    • ID: (this will be generated when you save.)
    • Code: This will be generated or you can override with your own custom Affiliate Code. This is the value added to the site URL to designate the affiliate link. (e.g. “&pa=CODE” or “?pa=CODE”).
    • Business/Contact Name: A custom contact name for the affiliate (not shown publicly).
    • Affiliate User: The username of a WordPress user in your site who should have access to affiliate reports.
    • Tracking Code: If you are tracking this affiliate through another system, you can add HTML/JS code here to run on the confirmation page after checkout. Variables: !!ORDER_ID!!, !!LEVEL_NAME!! (Optional)
    • Cookie Length: Length of time the cookie will remain valid for the affiliate tracking. Default is 30 days.
    • Enabled: Yes or No

Automatically Generate an Affiliate Code after Membership Checkout

You can now generate an Affiliate Code for your members as part of their membership checkout (instead of having to manually create the affiliate).

  1. Navigate to Memberships > Membership Levels.
  2. Edit a Membership Level.
  3. Check the box labeled “Check this if you want to automatically create the affiliate code for members of this level” under the “Affiliate Settings” heading.
  4. Save the level.

All new members that complete a checkout for this level will have an Affiliate Code generated for them. Note that existing members of this level will NOT automatically be entered into your affiliate program.


Frontend “Report” View for Affiliates

Allow members with an Affiliate Code to view their affiliate URL and see a history of activity on their affiliate URL. A link to this report page is automatically added to the “Member Links” section of the Membership Account page.

The Member’s report page can be created via two methods:

  1. Navigate to Memberships > Page Settings. Here you will see a new setting for the “Affiliate Report” page. Click the link to generate the page.
  2. Or, add a new page yourself and include the shortcode [pmpro_affiliates_report]. Then, assign your newly created page as the “Affiliate Report” page under Memberships > Page Settings.

View Affiliate Reports as Admin

Navigate to Memberships > Affiliates to view reports of activity for your affiliate codes. You can view a report of all affiliate activity or the activity of a specific affiliate’s code.


New! Rename the term “Affiliates” for Your Program

You can globally replace the term “Affiliates” throughout the tracking system to any term (singular and plural) of your choice. This is useful if you would like to repurpose the Affiliates Add On for “Referrals” or “Invitations”.

To update the term, navigate to Memberships > Affiliates > Settings. Specify your new Singular Name and Plural Name. Then click to save.


Important Notes

  • This plugin does not handle any payouts to your affiliates.
  • If you plan to award affiliates, you can download a report (CSV) of affiliate activity and process the payments manually on a monthly, quarterly, etc. basis.
  • This plugin does not deduct the “sale” from the affiliate when a member cancels.
  • This plugin does not log recurring sales for the referring affiliate.