Follow

How to install the Refer a Friend code on your BigCommerce store

Refer a Friend code is easily integrated into your BigCommerce store.

  1. Login to your store’s control panel.

  2. Click on Settings and then select Conversions from the drop down menu.

  3. bigcommerce-settings.png

    In the Conversion Tracking Code box, enter the code below:

    Note

    To get your personal integration code, STOREYA-SECRET-KEY needs to be replaced with your StoreYa secret key. You can get this on the last stage of the "Refer a Friend" configuration procedure, on StoreYa's back office.

    <!-- Begin StoreYa script -->
    <script type="text/javascript">
     //<![CDATA[
     (function(){function load_js(){var s=document.createElement('script');s.type='text/javascript';s.async=true;s.src='//www.storeya.com/externalscript/ReferFriend'; var x=document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x)} if(window.attachEvent)window.attachEvent('onload',load_js);else window.addEventListener('load',load_js,false)})();
     
     var _storeya = _storeya || []; 
     var _storeya_order_details = {
     SiteID: 'PUT HERE STOREYA SECRET KEY',
     OrderID: '%%ORDER_ID%%', 
     SubTotal: '%%ORDER_SUBTOTAL_DISCOUNTED%%',
     Email: '%%ORDER_EMAIL%%', 
     CustomerName: 'CUSTOMER_NAME', 
     };
     
     _storeya.push([_storeya_order_details]); 
     
     //]]>
    </script><!-- End StoreYa script -->

     

     4. Click Save.You will see the popup below:

    bigcommerce-popup.png

    5. Click OK.

     

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk