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
    • 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. Integrations
  2. Shopify

Add Referral Widget on Shopify Stor

PreviousHow to setup Shopify?NextPopup Script to Display Discount Codes

Last updated 1 month ago

Follow these steps to integrate the Referral Widget into your Shopify store and kickstart your referral program.

Step 1: Create a Dedicated Referral Page

  1. In your Shopify Admin, go to: Online Store → Pages

  2. Click Add Page.

  3. Enter a name for your page, like: Refer and Earn

  1. Switch to HTML view by clicking the </> icon in the top-right of the content editor. Paste the following code into the editor:

<script type="text/javascript" defer src="https://app.referralrocket.io/widget/widgetIndex.js"></script>


<div class="hype_widget" campaign-id="YOUR-CAMPAIGN-ID"></div>
  1. 🔁 Important: Replace YOUR-CAMPAIGN-ID with your actual campaign ID.

  1. Ensure Visibility is turned on so the page is accessible to visitors.

  1. Click Save to publish the page.


Step 2: Add the Referral Page to Your Store Menu

Make it easy for customers to access your referral program by adding it to your store's navigation menu.

  1. In your Shopify Admin, go to: Content → Menus

  2. Choose the menu where you'd like to add the page — for example, Main Menu.

  3. Click Add menu item.

  1. Enter a link label like Refer and Earn.

  2. In the Link field, select Pages.

  3. Then, choose the referral page you created (e.g., Refer and Earn).

  4. Click Add, then Save menu to apply the changes.