BigCommerce

Integrating your Referral Rock program with BigCommerce is simple. We'll go step-by-step through the setup needed to provide referrals with coupons for use in your BigCommerce store and to track referral purchases.

Setting Up a Static BigCommerce Coupon Code for Referrals

Step 1: Create a coupon promotion in BigCommerce. Follow these instructions to create a coupon code in BigCommerce. BigCommerce gives you plenty of options for customizing coupon code behavior in your store, so spend some time setting up the coupon just the way you want! After you save the coupon, take note of the code that you created.

Step 2: Now that you have a coupon code that works in BigCommerce, it's time to put it into Referral Rock. 

  1. In your program editor, navigate to the Referral Page and choose Landing for Referral Capture. 
  2. In Page > Layout Options, click Yes under Display a code to referral, click Static Code, and then paste your BigCommerce code into the box below. 

You'll want to spend some time customizing the landing page to make it perfect. The goal of the landing page is to give referrals a quick overview of your business, provide them with the static coupon code, and then pass them on to your store via the CTA button.


Referral Conversion Tracking in BigCommerce

The next step in setting up Referral Rock to work with BigCommerce is tracking conversions on your store. This will tell us which referral purchased from your store (ID is done by email), the dollar value of their purchase, and who the member was that referred them so that you can reward that member. 

  1. Navigate to your BigCommerce Dashboard.
  2. Select Advanced Settings from the menu on the right side of the screen.
  3. Select Affiliate Conversion Tracking.
  4. Enter your BigCommerce Event Script (example below) in the Conversion Tracking Code box.
  5. Hit Save.

BigCommerce Example Event Script

<script>
          var rrClientNamespace = (
              rrAppsettings = {
                  mode: "conversion",
                  debug: "false"
              },
              rrParameters = {
                  externalidentifier: "%%ORDER_ID%%",
                  email: "%%ORDER_EMAIL%%",
                  amount: "%%ORDER_AMOUNT%%"
              }
          );
          </script>
The amount in the above event script will be the total before any discounts are applied. If would like to track referral purchase amounts after discounts, replace %%ORDER_AMOUNT%% in the script above with %%ORDER_SUBTOTAL_DISCOUNTED%%
Checkout BigCommerce's page on Conversion and Affiliate Tracking for more options.

Automating Referral Approval in Referral Rock

Back in Referral Rock, you'll want to ensure that referrals are automatically approved.

  1. In the Program Editor > Referral > Conversion Settings > Settings
  2. Click the Yes box under Automatically approve referral? 
  3. When you create member rewards, ensure you are using the Approved Referral Status as the event trigger for the reward. 

How did we do?