This guide provides instructions on launching your affiliate marketing program for your subscription solution powered by Memberful. It offers guidance for two different setup scenarios:
For Memberful Users with WordPress:
If you're utilizing the Memberful plugin within your WordPress website.
For Memberful Users without WordPress:
If you've installed Memberful on a non-WordPress website.
Both setups can be configured to seamlessly handle recurring/lifetime commissions by connecting your Memberful account to both Tapfiliate and Stripe. Additionally, this integration supports the automatic management of refunds and disputes.
To activate your integration, follow these steps:
1. Create Your Tapfiliate Account:
Begin by setting up your Tapfiliate account.
2. Activate Tapfiliate Integration in Memberful:
Access your Memberful dashboard and navigate to Settings > Integrate > Services.
Activate the Tapfiliate Integration.
3. Set the Redirect Page:
Go to Settings > Customize > Advanced in Memberful.
Specify the page where customers should be redirected after a successful order. Alternatively, you can set this per-plan basis by going to the desired plan and configuring the Redirect URL. This page typically serves as your thank you or confirmation page.
4. Proceed with Your Chosen Setup Option:
Continue with the setup option that best suits your needs.
Option 1: Memberful with WordPress
Install the Tapfiliate plugin.
In WordPress, go to Settings > Tapfiliate.
Fill in your Tapfiliate account ID. You can find it in your Tapfiliate Profile Settings.
Save your changes.
Add the following shortcode to your thank-you page:
[tapfiliate 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.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
<script type="text/javascript">
(function(t,a,p){t.TapfiliateObject=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>
2. Place the following code inside the <head> tag of your thank-you page:
<script src="https://script.tapfiliate.com/tapfiliate.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.TapfiliateObject=a;t[a]=t[a]||function(){ (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');
tap('create', 'YOUR ACCOUNT ID', { integration: "memberful" });
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>
Replace YOUR ACCOUNT ID with your actual account ID in both snippets.
3. Save and test your integration.
How to enable recurring commissions?
If you wish to track recurring commissions, remember to connect your Tapfiliate account to Stripe after completing the integration process.
Tapfiliate and Memberful integrate seamlessly with Stripe, allowing for the automation of specific tasks, including:
Issuing Recurring Commissions for continuous membership payments
Tracking Refunds effectively
Managing Disputes with ease
To enable automation, follow these steps:
Navigate to your Integrations Page.
Locate Memberful among your integrations and click on it > Connect.
Please ensure that you conduct a conversion test before launching your program. This step is essential for verifying the accuracy of your tracking setup. Detailed instructions for creating a test conversion can be found here.

