How To Integrate With LaunchPass

This article shows you how to link your Refersion account with LaunchPass.

Andre Tan avatar
Written by Andre Tan
Updated over a week ago

LaunchPass makes it easy to create a subscription-based community on Slack or Discord. 

Now you can reward your members when they refer users to your community by integrating Refersion to LaunchPass. 

The steps below include:

  1. Connect LaunchPass with Stripe

  2. Connect Refersion with Stripe

  3. Install Refersion’s Tracking and Conversion Scripts

  4. Publish and promote your affiliate program

Step 1: Connect LaunchPass with Stripe

Once you’ve created your invite page (and started your 14-day free trial), you’ll be able to connect your Stripe account with LaunchPass. Just head over to settings in the LaunchPass admin and click “Connect with Stripe”.

Step 2: Connect Refersion with Stripe

After signing up for Refersion, you’ll also need to connect it to your Stripe account. Choose Stripe from the Start Guide, or if you’ve already connected to Stripe, go to Account>Settings>Tracking and click on Add Tracking.

Step 3: Install Refersion’s Tracking Scripts

If your Launchpass community is on Slack, proceed with Option 1.
If your Launchpass community is on Discord, proceed with Option 2.

Option 1: For Slack Launchpass Communities

Head over to LaunchPass, and click “edit” on the Invite page where you’d like affiliates to earn commissions.

Step 1: Add Refersion’s tracking script

Within the “Analytics & Tracking” field paste the following code. You’ll need to replace both SUBDOMAIN and PUB_KEY below with the Refersion Subdomain and Public Key that are unique to your Refersion account. Check out How To Find Your Refersion Subdomain and API Keys

<!‐‐ REFERSION TRACKING: BEGIN ‐‐>
<script src="//SUBDOMAIN.refersion.com/tracker/v3/PUB_KEY.js"></script>
<script>_refersion();</script>
<!‐‐ REFERSION TRACKING: END ‐‐>

Note: If you are using the LaunchPass widget on your own domain you'll  need to embed the “Tracking Visits” code into the head of that site.

Step 2: Add Refersion’s conversion script

Within the “Conversion Tracking Code” field found while editing the Invite page, paste the following code. 

_refersion(function(){ _rfsn._setSource("STRIPE");
_rfsn._addCart(data.stripeCustomerId); });

After all of the scripts are added in Launchpass, proceed to step 4.

Option 2: For Discord Launchpass Communities

Step 1: Publish your offer and add the embed code to your website

Integrating LaunchPass for Discord with Refersion requires using the LaunchPass widget on your own website instead of using invite pages hosted on the LaunchPass domain. It also requires you to setup a thank you page on your website that LaunchPass will redirect customers to after they purchase their membership

Once your offer is published click “embed” and copy the HTML embed code into your

own website.

Once the HTML code is added to your site, a button will be displayed on your site allowing your customers to subscribe to your Discord server.

Step 2: Add Refersion’s tracking script to your website

Install Refersions tracking scripts into the head of your website. If your website does not have one header file, you'll need to copy this code onto all of the pages of your site.

You’ll need to replace both SUBDOMAIN and PUB_KEY below with the Refersion Subdomain and Public Key that are unique to your Refersion account. Check out How To Find Your Refersion Subdomain and API Keys

<!‐‐ REFERSION TRACKING: BEGIN ‐‐>
<script src="//SUBDOMAIN.refersion.com/tracker/v3/PUB_KEY.js"></script>
<script>_refersion();</script>
<!‐‐ REFERSION TRACKING: END ‐‐>

Step 3: Redirect new members to your thank-you page after successful payment

You'll need to redirect users to a thank-you page on your site after they've completed their payment through Stripe.

Within the “Conversion Tracking Code” field found while editing the Invite page, paste the following code. Replace https://YOUR-DOMAIN/THANK-YOU-PAGE with the actual URL of your store's thank you page:

document.location.href = `https://YOUR-DOMAIN/THANK-YOU-PAGE?inviteCode=${encodeURIComponent(results.user.discordInviteLink)}&stripeCustomerId=${results.user.stripe_cus}`;

Step 4: Add Refersion’s conversion tracking script to your thank-you page

In order to track conversions in your Refersion account. You'll need to add the following code to your thank you page:

<script>
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const stripeCustomerId = urlParams.get('stripeCustomerId')

_refersion(function(){ _rfsn._setSource("STRIPE");
_rfsn._addCart(stripeCustomerId); });
</script>

Note: Make sure the tracking script from step 2 is present on your thank you page as well.

Step 4: Email Refersion your LaunchPass invite page link

Email the URL of your invite page (i.e http://launchpass.com/group/channel) and your domain that you are using to “[email protected]” with subject “LaunchPass Domain Configuration” to complete domain set up with Refersion.


Step 5: Run a Test Order

To make sure everything is configured correctly, run a test order to test the tracking on your site (note: test orders will take about 10 minutes to come through). If you are having any issues contact us, [email protected]

Step 6: Publish your page and start working with affiliates!

Once you’ve completed these steps Refersion, LaunchPass and Stripe are all integrated, and you are ready to start promoting your affiliate program!

You can start growing your program, customize & share an affiliate signup page with your members, or even get added to Refersion’s own marketplace where potential affiliates can discover and promote your community.

Each affiliate will get a unique link to your invite page, and when a new member signs up they will be rewarded in whatever way you decide!

Did this answer your question?