This guide will help you integrate your Refersion account to BigCommerce backend, allowing you to track affiliate orders generated from BigCommerce. Below are the required steps to connecting Refersion to BigCommerce:

  1. Add Refersion Tracking
  2. Add the Refersion code snippet [using the Google Analytics box or the Visual Website Optimizer in Bigcommerce]
  3. Add Refersion code snippet to Affiliate Conversion Tracking box in BigCommerce
  4. Determine the SSL settings on your site
  5. Run a test order

Step 1: Add Refersion Tracking

If you are on the Getting Started Guide, click Exit to Dashboard.

While logged in to your Refersion dashboard, open a new tab in your browser. In the new tab, login to your Bigcommerce store. With both tabs open, install the Refersion app from the Bigcommerce App Store. Installing the app should automatically connect Bigcommerce tracking to your Refersion account.

You can check to see if tracking is connected in Refersion by going to Account > Settings > Tracking. The new tracking should look like this:

Step 2: Add Refersion code snippet to the Google Analytics box in BigCommerce

In BigCommerce, navigate to Advanced Settings > Web Analytics.

NOTE: If you are using the “Google Analytics with Enhanced Ecommerce using a Property ID” option in Bigcommerce, skip ahead to Step 2b.

In the web analytics section, enable Google Analytics if it is not already enabled, and add the following snippet to the analytics box, being sure to replace the highlighted PUB_KEY with your Refersion API Public Key (found in Account > Settings > Refersion API, more info on where to find your pub_key here)

<script src="//www.refersion.com/tracker/v3/PUB_KEY.js"></script> <script>_refersion(function(){ _rfsn._setSource("BIGCOMMERCE"); });</script> 


Step 2b: Add Refersion code snippet to the Visual Website Optimizer box in BigCommerce

In the web analytics section, enable Visual Website Optimizer and add the following snippet to the tracking code box, being sure to replace the highlighted PUB_KEY with your Refersion API Public Key (found in Account > Settings > Refersion API, more info on where to find your pub_key here)

<script src="//www.refersion.com/tracker/v3/PUB_KEY.js"></script> <script>_refersion(function(){ _rfsn._setSource("BIGCOMMERCE"); });</script> 

Step 3: Add Refersion code snippet to Affiliate Conversion Tracking

In BigCommerce, go to Advanced Settings > Affiliate Conversion Tracking and add the following snippet:

<script>_refersion(function(){_rfsn._addCart("%%ORDER_ID%%"); });/* %%ORDER_AMOUNT%% */</script>  

Step 4: Determine the SSL settings on your site
There are three scenarios 

  • No SSL on the site 
  • SSL just on the homepage
  • SSL on the entire site, provided by BigCommerce 

To determine which settings you have, try going to your site and looking at the address bar in your browser. If the web address starts with http, that means there is no SSL on your site. If your homepage starts with https and all the other pages start with http, then you have the second scenario.  If, as you navigate different pages, the address bar stays as https, then you have SSL on your entire site. 

No SSL on the site 

Use your BigCommerce URL for your Refersion tracking. You can find your BigCommerce domain by following the steps here.  Once you have obtained that URL, set your domain in Refersion by going to Account > Settings.

SSL just on the homepage 

Contact Refersion for additional settings that we need to turn on for you, shoot us an email at [email protected] 

SSL on the entire site, provided by BigCommerce 

Add your website's URL in Account > Settings and you're all set. No additional steps required, proceed to Step 6.

Step 5: Run a test order

To make sure everything is configured correctly, run a test order to test the tracking on your site (note: test orders will take about 10 minutes to come through).  If you are having any issues contact us, [email protected]

Did this answer your question?