This integration method integrates Post Affiliate Pro with BigCommerce using the sale tracking code defined in BigCommerce admin panel and BigCommerce API.

It is possible to track subtotal cost, order ID, product SKUs (as product IDs) and a customer email (to support Lifetime commissions). You can configure a built-in BigCommerce API plugin to track commissions per product or per transaction.

1.

Setting up the integration code

Login to your admin panel, navigate to Advanced settings> Affiliate Conversion Tracking and add this tracking code:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
var orderId = '%%ORDER_ID%%';
var email = '%%ORDER_EMAIL%%';
var callBack = false;
PostAffTracker.setAccountId('Account_ID');
function getVisitorId() {
	return PostAffTracker._getAccountId() + PostAffTracker._cmanager.getVisitorIdOrSaleCookieValue();
}

function visitorCallBack() {
  if (callBack == false && "null" != getVisitorId()) {
    callBack = true;
    var pixel = document.createElement("img");pixel.width=1;pixel.height=1;
    pixel.src = 'https://URL_TO_PostAffiliatePro/plugins/BigCommerceAPI/bigcommerce.php?visitorId='
    +getVisitorId()+'&orderId='+orderId+'&email='+email;
    document.body.appendChild(pixel);
  }
}

PostAffTracker._cmanager.loadHttpCookies();
if (getVisitorId().indexOf('null') != -1) {
	PostAffTracker._cmanager.readAllFlashCookies();
	setTimeout(function() {visitorCallBack();}, 1800);
	PostAffTracker.executeOnResponce.push(function() {visitorCallBack();});
}
else {
	visitorCallBack();
}

try {
  PostAffTracker.track();
}
catch(e){}
</script>

Save it and continue with the next step.

Do not worry if BigCommerce shows a popup notification like "No placeholders used" after you placed in the sale tracking code. The sale tracking code will work properly. The notification shows up because the tracking code does not use %%ORDER_AMOUNT%% variable.

2.

Plugin setup

Next step is to activate your BigCommerce API plugin in your Post Affiliate Pro merchant panel. When activated, you have to configure the plugin. You will have to enter your store path and API details. All these can be found in your BigCommerce admin panel in Advanced Settings>Legacy API Settings. You will have to edit (or create new) API account and then set it's details in the plugin.

3.

For Post Affiliate Pro versions lower than 5.2.0.3

If you use Post Affiliate Pro version lower than  5.2.0.3, then the 'BigCommerceAPI' plugin is not available in your installation of Post Affiliate Pro. 

In that case either, use the following integration code in your BigCommerce admin panel at Advanced settings>Affiliate Conversion Tracking

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
sale.setOrderID('%%ORDER_ID%%');
sale.setTotalCost('%%ORDER_SUBTOTAL_DISCOUNTED%%');
sale.setData1('%%ORDER_EMAIL%%');
PostAffTracker.register();
</script>

4.

Click Tracking

The last step is to integrate your BigCommerce store pages with the click tracking code which you can also find in your Post Affiliate Pro merchant panel in Tools>Integration>Click tracking.

In newer versions of BigCommerce using their Stencil themes you need to add it to Storefront>Footer Scripts section.

In older versions of BigCommerce using the Legacy Blueprint themes you need to add it in Storefront>My Themes. Click on Edit HTML/CSS. Find footer.html page in the menu and add the click tracking code there at the bottom of the file. Don't forget to save your changes.

Issues and possible solutions

If your bigcommerce store is properly integrated and you orders are not being tracked you should check these steps:

  1. Make sure that you used the integration code found in your Post Affiliate Pro account merchant panel>Tools>Integration>Sale/lead tracking from the drop-down menu choose BigCommerce option.
  2. Make sure your Post Affiliate Pro account is available via HTTPS:// ( all accounts hosted by us are available via HTTPS:// by default )
  3. If you are using Legacy Blueprint theme, open your BigCommerce panel click Store setup>Design>Edit HTML/CSS, look up the order.html file. In that file right above the last </div> tag, there must be this code: %%GLOBAL_ConversionCode%%

In case these steps did not help you, please do not hesitate to contact our support team for help.

NOTE: Bigcommerce platfrom does not support our Mod rewrite linking method or Site replication feature.