BigCommerce

As a Linkshop advertiser using BigCommerce, the easiest way to get your affiliate tracking set up is using the Script Manager within the BigCommerce platform. The guide below is intended for Linkshop merchants using BigCommerce stencil theme and wanting to set up Linkshop affiliate tracking.

How to add Linkshop affiliate tracking to your BigCommerce store.

Once we have set your store up in Linkshop, you then follow the steps below:

1/ Navigate to the BigCommerce Script Manager (see how here).

2/ Add the Click Script provided by Linkshop (see below in italics).

Instal with the following options selected: Store Pages | Essential | Header

Click script:

<script type="text/javascript"
src="https://click.linktrack.co.nz/scripts/sdk/everflow.js"></script>
<script type="text/javascript">
EF.click({
offer_id: EF.urlParameter('oid'),
affiliate_id: EF.urlParameter('affid'),
sub1: EF.urlParameter('sub1'),
sub2: EF.urlParameter('sub2'),
sub3: EF.urlParameter('sub3'),
sub4: EF.urlParameter('sub4'),
sub5: EF.urlParameter('sub5'),
uid: EF.urlParameter('uid'),
source_id: EF.urlParameter('source_id'),
transaction_id: EF.urlParameter('_ef_transaction_id'),
});
</script>

3/ Add the Conversion Script provided by Linkshop (see below in italics).

Instal with the following options selected: Order Confirmation Page | Essential | Footer

Note Linkshop will provide you with an ID number to replace “INSERT_OID”

Conversion Script:

var oid = INSERT_OID;
var orderId = {{checkout.order.id}};
fetch('/api/storefront/order/' + orderId, { credentials: 'include' })
.then(function (response) {

return response.json();

})
.then(function (order) {
EF.conversion({
offer_id: oid,
amount: order.orderAmount - (order.taxTotal + order.shippingCostTotal),
order_id: orderId,
coupon_code: order.coupons.length > 0 ? order.coupons[0].code : '',
parameters: {'email': order.billingAddress.email}
})
});

Note: if you use ad blockers, disable or remove them before completing steps above.

Technical support

Email Michael@linkshop.co.nz

Call 027 239 2716