Page tree
Skip to end of metadata
Go to start of metadata

Refiral creates infinite sustainable sales loops by converting your existing customers into your virtual marketing sales force. Increase your conversion rate, acquire new customers and retain existing customers. 

Step one: Visitors are offered instant discounts on their current purchases on sharing discounts among friends on social media networks. Instant discounts convert these visitors to actual paying customers.

Step Two: Discount links shared result in free, targeted social media marketing. Interested friends visit your store and get direct discounts on their purchases. Your existing customers' friends become your new customers.

Step Three: On friends' successful purchase, original customers who shared are instantly rewarded with a discount on their next purchases. Repeat purchases retain existing customers, increasing brand loyalty.

Click here to learn more about Refiral.

How to integrate Refiral:

  1. Login to your Workspace.
  2. In a second browser tab, signup for Refiral here. During Refiral setup you will create three types of coupons; Instant, Friend’s Offer and Reward Offer. Make note of the coupon codes and their discounts, as you will need to input these in your Workspace in step 3. After completing the setup of your campaign, Refiral will contact you via email once your campaign has been approved.

  3. Return to your Workspace tab. Create coupon codes  from the “Marketing” tab on the left. Select “Coupons”, then “Add a Coupon”. Remember to use the exact same coupon codes created in step 2. Click here for more information on creating coupon codes.

  4. After you receive your campaign approval email by Refiral, login and click on “Integration” from the top navigation.

  5. Copy the generated Integration code to your clipboard.

  6. Return to your Workspace tab, select “Settings” then select “General” tab.

  7. Scroll to the bottom and paste the copied script code into the “Additional Javascript” field. See screenshot below.

  8. Select “Apply Settings” to save the changes.

  9. Copy the following code to your clipboard.

    {% assign discount = discounts.first %}
    {% assign discount = discounts.first %}

    <script type="text/javascript">var showButton = false;</script>
    <script type="text/javascript">var apiKey = "APIKEYGOESHERE";</script> 
    <script type="text/javascript" src="//rfer.co/api/v1/js/all.js"></script>
    <script> 
    var total = {{total_price}};
    var subtotal = {{ subtotal_price }};
    var cartInfo = {};

    {% for each item in line_items %}
    var item = {};
    item['id'] = '{{item.id}}';
    item['name'] = '{{item.title}}';
    item['quantity'] = '{{item.quantity}}';
    cartInfo[{{forloop.index0}}]=item;
    {% endfor %}

    cartInfo = new String(JSON.stringify(cartInfo));
    console.log(cartInfo);
    jQuery(document).ready(function() { 
    invoiceRefiral( 
    (subtotal/100), 
    (total/100), 
    '{{ discount.code }}', 
    cartInfo, 
    '{{ billing_Address.name }}', 
    '{{ customer.email }}'
    ); 
    }); 
    </script>

  10. You will need to insert the API KEY specific to your Refiral account when you paste the above code into your Workspace. 

    Your API KEY is found under the “Integration” tab in Refiral.

  11. Return to your Workspace tab. Select “Checkout and Payments” from under the  “Settings” tab. Scroll to “Additional Contents and Scripts” field.

  12. Paste the code into the “Additional Contents and Scripts” field. Insert your API KEY into the code.

  13. Select “Apply” to save the changes.

  14. See screenshots below for how Refiral may look on your webstore.

 







 






Related articles