Awin Access Technical Integration BigCommerce

From Wiki

Jump to: navigation, search

Contents

BigCommerce

Please complete the steps on your BigCommerce website below and ensure that you have run tests as outlined in the last steps.

Stuck? Watch the BigCommerce integration video tutorial here

Step One: Adding the MasterTag onto all pages

1. Go to Storefront > Script Manager

2. Create a Script, and configure it as shown in the screenshot:

3. Set the script contents to the code below:

<script defer="defer" src="https://www.dwin1.com/XXXXX.js" type="text/javascript"></script>

Ensure the XXXXX has been changed to reflect your Advertiser ID, you can find this by logging onto your Awin account and clicking on Account > Overview, where the MID will be shown underneath your account name.


4. Save

Step Two: Adding the Conversion tag to the confirmation page

1. Go to Advanced Settings > Web Analytics > Affiliate Conversion Tracking

2. Paste the code below into the box:

<script type="text/javascript">var AWIN = {};
var price = %%ORDER_SUBTOTAL%%;
 
AWIN.Tracking = {};
AWIN.Tracking.Sale = {};
AWIN.Tracking.Sale.amount = price;
AWIN.Tracking.Sale.channel = "aw";
AWIN.Tracking.Sale.currency = "GBP";
AWIN.Tracking.Sale.orderRef = %%ORDER_ID%%;
AWIN.Tracking.Sale.parts = "DEFAULT:" + price;
 
var image = document.createElement("img");
image.src = "https://www.awin1.com/sread.img?tt=ns&tv=2&merchant=XXXXX&amount=" + price + "&ch=aw&cr=GBP&parts=DEFAULT:" + price + "&ref=" + "%%ORDER_ID%%";
document.getElementsByTagName("body")[0].appendChild(image);
</script>

Replace XXXXX with your Advertiser ID again. If your store currency is not GBP, replace this with the relevant currency, e.g. EUR (the currency appears twice in this code).


The default VAT rate is 19%, to change the VAT deduction rate please replace the 'price' variable with the following: ((%%ORDER_SUBTOTAL%%)/1.XX).toFixed(2); and replace the XX's with the rate (%) you would like to set.

3. Save

Last Step - Tracking Tests

After integrating the Awin tracking you will need to create a test transaction via the Awin User Interface to check the tracking is working correctly.

Complete the steps to conduct a test transaction via our Test Transaction Guide


Return to tracking guide home page here

Privacy

Due to new European legislation regarding how websites store information about you, AWIN is updating its privacy policy. You can see the new version of our policy here. If you would like to see the information we capture on this website, please click here for further details. In order to accept cookies on this site please click the 'I ACCEPT' button