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
  1. Getting Started
  2. Campaigns
  3. Installing/Tracking your Referral Campaign
  4. Option 2: Custom Solution

Integrate the referral program inside your webapp for logged in user

PreviousEmbed Referral Rocket WidgetNextReferral Tracking

Last updated 5 months ago

For SaaS or B2B companies, embedding the referral program within the app proves exceptionally advantageous, seamlessly integrating it into your users' workflow. This approach ensures that the referral process becomes an intrinsic part of their interaction with the platform, maximizing visibility and engagement while minimizing disruptions to their workflow. Referral Rocket automatically generates a unique link for your customer and also show the progress of their referrals.

Example of integrating referral program in-app:

For generating unique links without requiring user sign-up, simply pass in additional parameters as shown below to the script:

//Add script to head tag
<script type="text/javascript" campaign-id="YOUR-CAMPAIGN-ID"  defer src="https://app.referralrocket.io/widget/widgetIndex.js"></script>

//Add to body
<div class="hype_widget" campaign-id="YOUR-CAMPAIGN-ID" email="UserEmail" first-name="FirstName" last-name="LastName" ></div>

In addition to the above method, you can build a full customizable solution using our SDK/APIs.

Integrate a referral program in app using Referral Rocket