Referral Rocket
HomeDashboard
  • What is Referral Rocket?
  • Referral Program Examples
  • Getting Started
    • Campaigns
      • Campaign Types
      • Campaigns Details
        • Milestone Details
        • Reward Details
        • Referrer Widget
        • Invitee Widget
      • Installing/Tracking your Referral Campaign
        • Option 1: Hosted Solution (No/Low Code)
        • Option 2: Custom Solution
          • Simple Referral Program Redirect: Quick Setup Guide
          • Redirect user to hosted campaign
          • Embed Referral Rocket Widget
          • Integrate the referral program inside your webapp for logged in user
        • Referral Tracking
          • Track referral on Sign Up page
          • Track referral on Payments
      • Reward Management
      • Campaign Participants
      • Campaign Dashboards
  • Developer Tooks
    • Javascript SDK
    • REST API
      • API Endpoint
    • Webhooks
      • Setup
      • Testing
      • Events
  • Integrations
    • Stripe
      • How to setup Stripe?
        • Stripe Settings
      • Referral Tracking with Stripe
        • Promo Code Referral Tracking with Stripe
        • Setup Stripe Pricing Table
        • Setup Stripe Payment Links
        • Setup Stripe Payment Button
        • Stripe Checkout Sessions
    • Cashfree
    • Razorpay
    • MemberSpace
    • Outseta
    • Shopify
      • How to setup Shopify?
      • Add Referral Widget on Shopify Stor
      • Popup Script to Display Discount Codes
    • ScoreApp
  • Rewards
    • Tremendous
      • How to integrate Tremendous?
        • Tremendous Settings
      • How to issue rewards with Tremendous?
    • PayPal Mass Payments
    • Wise Batch Payments
    • Stripe
    • Shopify
    • RazorPayX
    • Paypal
  • Affiliate Hub
    • Affiliate Program Hub
  • Product Updates
    • December 2024
  • Trust Center
  • Contact Us
  • FAQ
    • Where to find Campaign ID?
    • Understanding the Test Plan: Perfect for Testing, Limited for Production
Powered by GitBook
On this page
  • Installation
  • How It Works
  • Testing
  • Important Notes
  • Troubleshooting
  1. Integrations

MemberSpace

This guide explains how to integrate Referral Rocket affiliate software with MemberSpace to track member signups and referrals.

Installation

To integrate Referral Rocket with MemberSpace, you'll need to add two scripts to your website:

  1. First, add the main Referral Rocket script to the <head> section of your website:

<script 
  type="text/javascript" 
  campaign-id="YOUR-CAMPAIGN-ID" 
  defer 
  src="https://app.referralrocket.io/widget/widgetIndex.js">
</script>
  1. Then, add the following script to the page where members sign up:

<script>
const handleMemberSignup = ({ detail }) => {
  const { memberInfo } = detail;
  
  // Get campaign instance
  const campaign = window.Rocket.getCampaign();
  
  // Add the new member as a participant
  campaign.addParticipant({
    email: memberInfo.email
  })
  .catch(error => {
    console.error('Error processing referral:', error);
  });
}

// Listen for MemberSpace signup events
document.addEventListener('MemberSpace.member.info', handleMemberSignup);
</script>

How It Works

  1. When a new member signs up through MemberSpace, it triggers the MemberSpace.member.info event

  2. The event handler captures the new member's email address

  3. The member is automatically added as a participant in your Referral Rocket campaign

  4. The system checks for any stored referral information in cookies

  5. If a referral is detected, it's automatically associated with the new member

Testing

  • Verify the integration by completing a test signup through MemberSpace

  • You can confirm proper installation by checking window.Rocket in your browser console

  • Note that referral tracking will only work when your campaign is in live mode

Important Notes

  • Remember to replace YOUR-CAMPAIGN-ID with your actual Referral Rocket campaign ID

  • Publish your site after adding these scripts

  • The integration automatically handles referral detection through stored cookies

Troubleshooting

If you're not seeing referrals being tracked:

  1. Verify both scripts are properly installed

  2. Check the browser console for any error messages

  3. Ensure your campaign is in live mode

  4. Confirm the MemberSpace.member.info event is firing on signup

PreviousRazorpayNextOutseta

Last updated 3 months ago

For additional support, contact our team at

support@referralrocket.io