This article has an update! -> please refer to Installing Google Universal Analytics for NetSuite
For those who don’t know, Netsuite is a hosted, ASP model ERP solution – you can manage your entire site and back-end inventory and accounting with one package, all through your browser. I spend a lot of time with their system, and will be posting on occasion tutorials, reivews, complaints and praise.
Google Analytics is actually Urchin web stats, which Google bought and retooled. They started offering it free in late 2005, and it’s comparable in power and usability to some very expensive packages. I highly recommend it.
- First, you must have a Google Analytics account with an available profile – you can find out more here.
- Create a custom tag named GOOGLYTICS (or whatever name you prefer). Add
to the Footer section under site templates. It really only needs to be someplace on each page, inside the
tags. Your code will look something like this:
- For the Checkout and My Account tabs, replace the GOOGLYTICS tag with the following (this is necessary so users don’t get warnings about insecure content on secure pages. You can also just use the secure version for everything.):
Note that I was having the form show up in spite of the hidden style, so I added it all to a div named ‘google_tracking’ that I set to display:none; in an external CSS file. I also hand entered some values that Netsuite doesn’t provide dynamically. I tried leaving out the UTM:I line altogether since there’s no way to make it meaningful, but Google didn’t seem to like that.
Add this code to the ‘Order Confirmation Message’ box under the checkout tab.
- Set up the goal tracking in GA
- Under analytics settings, click the edit button under settings. Click edit next to G1, the first goal.
The goal page will be:
This time replace the #’s with your Netsuite account number.
- Name the goal page whatever you like and set it active.
- Funnel navigation (optional): This might not work right for you, but here’s what I did:
- Step 1, shopping cart (check the box for required):
- Step 2, new user/sign in:
- Step 3, enter address:
- Step 4, shipping:
- Step 5, payment:
- Step 6, review and submit:
- Add two lines of code to the tracking on every page:
This can’t be done as far as I can tell, given the way netsuite works. You would need to change links that would normally look like:
First, I don’t like having links that spiders aren’t guaranteed to be able to follow. I would instead recommend using an onclick event for links, like:
The real problem is that no one wants their customers to have to change domains while on an E-Commerce web site. Unfortunately it’s pretty tough for Netsuite to allow their customers to install their own SSL certs and mirror them across the big array of clustered servers that make up their web front end. I can only hope that the unending clamoring for this feature from their customers will spur them to find a workable solution (then we can move on to other stolen branding problems Netsuite has, like the favicon.ico and the occasional Netsuite-branded 404 page).
More from Fourth Wave
Latest posts by David Norris (see all)
- NetSuite Announces Plans to End Promotion Functionality for Site Builder - January 16, 2020
- Most NetSuite Websites Are No Longer Tracking Safari Conversions for Adwords - November 20, 2017
- Make Your NetSuite Site Builder Site Secure – HTTPS Throughout - May 28, 2017
- An Introduction to Automating XML Sitemaps for NetSuite Companies - November 13, 2016
- An Introduction to NetSuite’s Reference Checkout & My Account Bundles - April 18, 2016