–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

Example:
europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.

NetSuite

An integrated cloud business software suite, including business accounting, ERP, CRM and ecommerce software.

With NetSuite, you can implement the complete business software suite to run your entire business better or begin with one module and add functionality as you need it.

The integration method uses an ability to display custom scripts on the thank you page. You can track subtotal, product info and order ID.

Sale tracking code

Login to your NetSuite admin and navigate to Setup > Site Builder > Set Up Web site > Analytics tab. Insert the following code to the Order Confirmation Page section:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
function triggerSaleTrack() {
    var rows = document.getElementById("ordersummary_total").parentNode.rows;
    for (var i=1; i<rows.length; i++) {
      var category = "<%=getCurrentAttribute('site','name')%>";
      var productName = rows[i].cells[1].innerHTML;
      var orderId = '<%=getCurrentAttribute('confirmation','ordernumber')%>' + '(' + i + ')';
      var quantity = rows[i].cells[3].innerHTML;
      var price = rows[i].cells[4].innerHTML;

      PostAffTracker.setAccountId('default1');
      var sale = PostAffTracker.createSale();
      sale.setTotalCost(price*quantity);
      sale.setOrderID(orderId);
      sale.setProductID(productName);
      sale.setData1(category);

      PostAffTracker.register();
    }
}
</script>

Save your changes.

Trigger the sale tracking code

For now, we’ve defined the sale tracker in a special function, which we have to call from site footer. This is because some site elements are not loaded yet, that is why we will call it from the footer.

Navigate to Web site > Appearance > Themes and edit your actual theme. Click on the body subtab and scroll down to footer code which is at the bottom of the page. Please insert this code there:

<script type="text/javascript">
if (document.URL.indexOf("thanks") != -1) {
  triggerSaleTrack();
}
</script>

Save it and that’s it.

The latest version of Netsuite

In case you use the latest version of Netsuite, you have to use a bit different code. Login to your Netsuite admin and navigate to Setup > Site Builder > Set Up Web site > Analytics tab. Insert the following code to the Order Confirmation Page section:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
    var itemsInOrder = "<%=getCurrentAttribute('confirmation','orderitems')%>";
    var rows = itemsInOrder.split("||");
    PostAffTracker.setAccountId('Account_ID');

    for (var i=1; i<rows.length; i++) {
      var item = rows[i].split("|");
      var orderId = "<%=getCurrentAttribute('confirmation','ordernumber')%>" + "(" + i + ")";
      var price = item[3] * item[4];

      var sale = PostAffTracker.createSale();
      sale.setTotalCost(price);
      sale.setOrderID(orderId);
      sale.setProductID(item[0]);
      sale.setData1(item[2]);

      PostAffTracker.register();
    }
</script>

These are values of each order item:

  • item[0] = SKU
  • item[1] = item name
  • item[2] = item category
  • item[3] = price
  • item[4] = quantity

Save your work and you are done.

One-Page Checkout feature

In case you wanted to integrate this new feature by NetSuite – One-Page Checkout, you can do it as well. This is the code you can use in your site.js file, in Custom/js folder:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
_nsCartModel.cart.items.each(function(item, index) {
  PostAffTracker.setAccountId('Account_ID');
  var sale = PostAffTracker.createSale();
  var price = parseFloat(item.price.substring(1));

  sale.setTotalCost(price*parseInt(item.quantity));
  sale.setOrderID(order.internalid);
  sale.setProductID(item.name);

  PostAffTracker.register();
}
);
</script>

In case you wanted to track category instead of (or in addition to) a product name, you can use variable ‘category‘. This variable can be used directly as it is initialized in SiteBuilder > Analytics tab.

Do not forget to integrate your main site with the click tracking code. Do not add it to your Netsuite admin panel as it might broke tracking.

Back to Integrations Create account for FREE
Would you like to improve your affiliate software even more? Check out the SimpleShop integration for Post Affiliate Pro.

SimpleShop

Would you like to improve your affiliate software even more? Check out the SimpleShop integration for Post Affiliate Pro.

Would you like to improve your affiliate software even more? Check out the Cleeng for Post Affiliate Pro.

Cleeng

Would you like to improve your affiliate software even more? Check out the Cleeng for Post Affiliate Pro.

Would you like to improve your affiliate software even more? Check out the CheddarGetter for Post Affiliate Pro.

CheddarGetter

The given text is mostly related to the Post Affiliate Pro, a subscription management system for startups. The text includes steps for integrating the system with CheddarGetter payment forms to track commissions and recurring payments. It also provides guidelines for modifying customer data and enabling the CheddarGetter plugin in Post Affiliate Pro. Additionally, the text includes a Privacy Policy, GDPR, and social media and newsletter subscription options.

Would you like to improve your affiliate software even more? Check out the Foxy Cart integration for Post Affiliate Pro.

Foxy Cart

The given text discusses various integration options available for Foxy Cart, including login integration, coupon tracking, and tracking each product as a separate transaction. These options can be integrated with PostAffiliate Pro to track transactions and sales data. The text provides step-by-step instructions for each integration option, including the necessary code to be inserted. The article also mentions that a free account can be created on PostAffiliate Pro to start using these integrations.

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.

×

Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call