Home Integration Methods NetSuite


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:
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:
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:
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.
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.