Integrating with Memberful

Out-of-the-box features:
  • Conversion tracking
  • Commission based on order amount
  • Auto-handle recurring commissions
  • Auto-handle refunds and disputes
  • Track affiliate coupon code conversions
  • Supports lifetime commissions

This guide describes how you can launch your affiliate marketing program for your Memberful-powered subscription solution.

This guide contains instructions for two set-up options:
- For Memberful users that use WordPress: You are using the Memberful plug-in inside your WordPress website.
- For Memberful users that do not use WordPress: You have installed Memberful in a non-Wordpress website.

Both setups can be configured to automatically support recurring/lifetime commissions, by activating your Memberful connection to both livaffiliate & Stripe. Automatic handling of refunds and disputes is also supported with this integration.

Activate your integration

For both setups, please make sure you activate your integration inside Memberful, as explained below. Then, follow the steps that match your use case.

  1. Create your livaffiliate account.
  2. From your Memberful dashboard, navigate to Settings > Integrate > Services, and activate the livaffiliate Integration. Memberful x Tap activate button
  3. Next, go to Settings > Customize > Advanced, and fill the Redirect to this page after a successful order field. If you prefer, you can also set this on a per plan basis by going to the desired plan, and setting the Redirect URL. This would be your thank you/confirmation page.

skitch

Next, please complete the steps in the option that best aligns with your use case. If you’d like to track your recurring commissions, be sure to connect your livaffiliate account to Stripe after you’ve finished your Integration process (further details at the end of the page).

Option 1: Memberful with WordPress

  1. Install the livaffiliate plug-in.
  2. Go to Settings > livaffiliate.
  3. Fill in your livaffiliate Account id. This is located in your livaffiliate Profile Settings.
  4. Save your changes.
  5. Next, add the following shortcode to your your Thank you page:

[livaffiliate amount_query_param=amount external_id_query_param=order_id customer_id_query_param=member_id]

Option 2: Memberful without WordPress

  1. Place this code in the <head> of every page of your website:

    <script src="https://script.livaffiliate.com/livaffiliate.js" type="text/javascript" async></script>
    <script type="text/javascript">
      (function(t,a,p){t.livaffiliateObject=a;t[a]=t[a]||function(){ (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');
    
      tap('create', '((((YOUR ACCOUNT ID))))', { integration: "memberful" });
      tap('detect');
    </script> 
    

{{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}
2. Next, place the following code inside the <head> tag of your Thank You page.

<script src="https://script.livaffiliate.com/livaffiliate.js" type="text/javascript" async></script>
    <script type="text/javascript">
      function getQueryParams(){var r={},n=function(r){return decodeURIComponent(r.replace(/\+/g," "))},t=location.search.substring(1).split("&");for(var e in t){var o=t[e].toString().split("=");o.length>1&&(r[n(o[0])]=n(o[1]))}return r}
      (function(t,a,p){t.livaffiliateObject=a;t[a]=t[a]||function(){ (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');
      tap('create', '((((YOUR ACCOUNT ID))))', { integration: "memberful" });
      tap('detect');

      var params = getQueryParams();
      if (params.order_id && params.member_id && params.amount) {
        tap('conversion', params.order_id, params.amount, { customer_id: params.member_id });
      }
    </script>

{{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}
3. Save and test your integration.

Enable recurring commissions

Because livaffiliate and Memberful connect directly with Stripe, there are certain tasks that can be automated. These are:

  • Issuing recurring commission for ongoing membership payments
  • Keeping track of refunds
  • Keep track of disputes

To enable these automations, connect livaffiliate to Stripe (last step of this guide).

Important

Please remember to test a conversion before starting your program. This way you can verify that tracking has been set up correctly. You can create a test conversion by following the steps described here.

Start a 14-day free trial with all our features enabled

Start now