I find this documentation in the NetSuite help section. Is anyone using this method to successfully track the website (Ecommerce) in Google Ananlytics?
I find that many NetSuite 3rd party providers have work arounds and was wondering what is wrong with the NetSuite integration that requires a "work around"?
Working With Google Analytics
Google Analytics enables you to understand how visitors interact with your Web site. In this way, it also helps you to optimize ad campaigns and Web site content for increased sales. Google Analytics data is based on visitor tracking information retrieved from your Web site.
To track Google Checkout orders, you must enable e-commerce reporting for your Web site in your Google Analytics account. For more information, visit http://www.google.com/analytics. Google Analytics Tracking Code (GATC)
The visitor tracking information in Google Analytics reports depends on JavaScript code that you include in your Web site pages. With NetSuite’s Google Checkout Integration feature, you can use Google Analytics to track shoppers on your NetSuite Web store who complete orders with Google Checkout.
Before you add Google Analytics Tracking Code (GATC) to your NetSuite Web site, you must have a valid Google Analytics account. Visit http://www.google.com/analytics to sign up for an account.
For more information about setting up your Google Analytics account to successfully measure conversion rates with Google Analytics goals and funnels visit the Google Checkout Merchant Help Web site.
Google Analytics tracks the following information for each Google Checkout order:
• Order Information - from the Order Confirmed page.
• Item Information - from each item in the order.
The topics below describe how to include GATC in your NetSuite Web site.
Using ga.js for Google Analytics
To include Google Analytics Code in your NetSuite Web site:
1. Go to Setup > Set Up >Web Site.
2. If you use the Multiple Web Sites feature, click Edit next to the site you want to modify.
3. On the Setup tab, in the Analytics Integration section, add the code below to the Addition to <head> field. You must modify this code sample to specify your Google Analytics account number in place of the value "UA-XXXXX-X."
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol)
? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js' type='text/
javascript'%3E%3Cscript%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-XXXXX-X");
pageTracker._initData();
pageTracker._trackPageview();
</script>
<script src="http://checkout.google.com/files/digital/
ga_post.js"
type="text/javascript">
</script>
4. When you use the Google Checkout Integration feature, you are not required to enter data in the Analytics Click Attributes field.
For more information about how to use this field, see “Web Site Setup Preferences” on page 25.
5. Enter the following in the Analytics Submit Attributes field:
onsubmit="setUrchinInputCode(pageTracker);return true;"
Important: Any changes you make to the Analytics Integration fields (in the Addition to <head> field or the Analytics Submit Attributes field) must be done properly and completely or else the ability to submit the cart page could be disabled.
Using urchin.js for Google Analytics.
To include Google Analytics Code in your NetSuite Web site:
1. Go to Setup > Set Up >Web Site.
2. If you use the Multiple Web Sites feature, click Edit next to the site you want to modify.
3. On the Setup tab, in the Analytics Integration section, add the code below to the Addition to <head> field. You must modify this code sample to specify your Google Analytics account number in place of the value "UA-XXXXX-X."
<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-XXXXX-X";
urchinTracker();
</script>
<script src="http://checkout.google.com/files/digital/
urchin_post.js"
type="text/javascript">
</script>
4. When you use the Google Checkout Integration feature, you are not required to enter data in the Analytics Click Attributes field.
For more information about how to use this field, see “Web Site Setup Preferences” on page 25.
5. Enter the following in the Analytics Submit Attributes field:
onsubmit="setUrchinInputCode();return true;"