> For the complete documentation index, see [llms.txt](https://referral-rocket.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://referral-rocket.gitbook.io/docs/integrations/shopify/add-referral-widget-on-shopify-stor.md).

# Add Referral Widget on Shopify Stor

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**<br>

   <figure><img src="/files/CvD7aIDrUSbztyHUAAC5" alt=""><figcaption></figcaption></figure>
2. Click **Add Page**.
3. Enter a name for your page, like: **Refer and Earn**

<figure><img src="/files/Y3caw7Yr3g0Hpstw9tOK" alt=""><figcaption></figcaption></figure>

4. 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>
```

5. &#x20;🔁 **Important**: Replace YOUR-CAMPAIGN-ID with your actual campaign ID.

<figure><img src="/files/nw42JVCnht9CjUyaRL5v" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe01wW3EYenMYEvuSeOR7yOwSprf6WeOERn5ME0SYw2YjSRP5cGDockouRUGJYJhjcZH-TngmqvPerpYqd0sZ26gjylBo-RqX43gK6Lz331vkPXTSKcYpKc9EdUEM0VSmZuaNHA6g?key=YGR2ZdG_XcMahc1Lgg4I-y-9" alt=""><figcaption></figcaption></figure>

7. 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**\ <br>

   <figure><img src="/files/51Zc918CsLJJvrHhXLWO" alt=""><figcaption></figcaption></figure>
2. Choose the menu where you'd like to add the page — for example, **Main Menu.**
3. Click **Add menu** item.

<figure><img src="/files/s3MZyFiUOvOVBZSw5wMH" alt=""><figcaption></figcaption></figure>

4. Enter a link label like **Refer and Earn**.
5. In the **Link field**, select Pages.\ <br>

   <figure><img src="/files/HEkfRb533MFY5bhz7emJ" alt=""><figcaption></figcaption></figure>
6. Then, choose the **referral page** you created (e.g., Refer and Earn).\
   \ <br>

   <figure><img src="/files/ryczsE47t1ypeRtLwEMM" alt=""><figcaption></figcaption></figure>
7. Click Add, then **Save** menu to apply the changes.\ <br>

***

<br>
