Quickstart

Get your first referral tracked in under 10 minutes.


What you'll build

By the end of this guide you will have:

  • A live referral campaign

  • A widget embedded on your site (or a hosted page link ready to share)

  • Referral tracking firing on sign up or payment


Step 1: Create a Campaign

  1. Click New Campaign.

  2. Choose a campaign type. If you're not sure, start with Double-Sided Referral — it rewards both the referrer and the new user.

  3. Fill in the basics:

    • Campaign name (internal label)

    • Reward — e.g. "$20 for the referrer, $10 for the new user"

    • Qualifying event — when the reward is triggered (sign up, first payment, etc.)

  4. Click Save & Continue.

See Campaign Typesarrow-up-right for a full breakdown of all six campaign structures.


Step 2: Choose Your Installation Method

Option A — Hosted Page (no code required)

  1. From the Campaign Detail page, copy the Hosted Campaign URL.

  2. Share this link in your emails, social posts, or in-app banners.

  3. Done — participants sign up on the hosted page and get their referral link automatically.

Use this if: you want to launch immediately without touching your codebase.


Add one script tag to the <head> of your site. Find your campaign-id on the Campaign Detail page under Installation.

Verify it's working: Open your browser console and type window.Rocket. You should see the Referral Rocket object, not undefined.


Step 3: Track Referrals

On Sign Up

When a new user registers, call addParticipant. The SDK reads the referral cookie automatically — no need to manually pass a referral code.

On Payment (if your qualifying event is a purchase)

After a successful payment, call qualifyParticipant to mark the event complete and trigger the referrer's reward.

Using Stripe? See the Stripe Integrationarrow-up-right guide for payment link, pricing table, and checkout session setups.


Step 4: Test Your Integration

  1. Open your site in an incognito window.

  2. Grab a referral link from any existing participant (or create one via the hosted page).

  3. Visit your site via that referral link.

  4. Complete the sign up (and payment if applicable).

  5. Go to Campaign > Participants in your dashboard — the new referral should appear with the referring participant linked.

  6. Check Reward Management to confirm the reward is queued.


Step 5: Go Live

  • Remove any test participants from the dashboard before launching.

  • Set your campaign status to Active if it isn't already.

  • Share your referral link or widget URL with your first users.


What's Next

Topic
Link

All campaign types explained

Customize the widget appearance

Full SDK reference

Server-side API

Stripe, Shopify, and more

Reward issuance workflow

Real-time events

Common issues

Troubleshooting


Need Help?

  • In-app chat — available from any page in your dashboard

  • Email — support@referralrocket.io

Last updated