Skip to main content

Adding a referral campaign pop-up

Enhance the impact of your referral campaigns through timely and relevant pop-ups

Ana Rincon avatar
Written by Ana Rincon
Updated over a week ago

Introduction

Strategically position your referral campaign pop-up to streamline the referral process and engage customers at the optimal moment.

✨ Referral campaigns are available on the Scale plans. See pricing β†’


Trigger referral pop-ups from buttons and links

By clicking buttons and links, customers can seamlessly access the referral campaign through a pop-up, without being redirected to another page.

Referral pop-up

These HTML elements will serve as gateways for customers to sign up as advocates of your brand. You can either edit existing elements or add new ones to your theme code.

  1. From your Shopify admin, go to Online Store > Themes

  2. Click on the ... button > Edit code

  3. Decide where you want the referral pop-up to be triggered (e.g. the /account page) and search for the file

  4. Locate the element and add open-rivo-advocate-campaign to its class. If you want to create a new button, use the following code as a reference:

    <button type="button" class="button button--primary open-rivo-advocate-campaign">  Refer Friends</button>
  5. Optional: If you have multiple referral campaigns enabled, add the attribute data-referral-campaign-id="##{{referral campaign ID}} after the class for specifying the campaign

    <button type="button" class="button button--primary open-rivo-advocate-campaign" data-referral-campaign-id="5578">  Refer Friends</button>
  6. Save changes.

Visit your storefront and navigate to the page where you added the element. Here's an example of our new button on the /account page.

Account page


Advanced Features

Referral campaigns offer customizable advocate and friend rewards, fraud prevention, and design options (colors, fonts, backgrounds). Fraud prevention includes IP checks, self-referral blocking, email variation filtering, cookie tracking, and new customer validation.

For best results, promote your referral campaign across your site, test the flow, and use balanced rewards for both advocates and friends.

Did this answer your question?