Google Analytics is a third-party analytics solution that helps you evaluate traffic on and to your website through visitor tracking data. This information can then be used to optimize your site content and/or for ad campaigns.
There are two methods for setting up Google Analytics in SuiteCommerce, which are detailed below. Both require setting up a Google Analytics account and GA4 property first.
The first method (aka the simple method) will allow Google Analytics to capture standard website visitor information such as where they came from, geographic location, browser, device type, and number of site/page visitors.
The second method (or customizable/advanced method) will do the same as method 1 PLUS allows you to add Google Analytics code snippets that would allow for tracking of clicks (i.e., registration, add to cart, in-site links, etc.), submit (i.e., going from cart to check out, form submission), and order tracking.
Prerequisite: Set up a Google Analytics account and GA4 property. Google has well outlined/documented this in this article.
In the Addition to <head> field, paste the tracking code from above.
Important: replace <account number> in the code above with your Google Analytics account number.
This passes Google tracking cookies from shopping to checkout. This, plus fields added in the click attributes, submit attributes, and order tracking HTML, are required for cross-domain analytics tracking. Clear this box if Google Analytics interferes with a custom solution that you have already implemented for cross-domain data tracking.
Place a test order to verify the data is being captured on the order confirmation page. Then, on the confirmation page, from the view menu in your browser, select View Source. You should see values for each tag in the script that you added to the Order Script Tracking HTML field.
We like to update our blogs and articles to make sure they help resolve any troubleshooting difficulties you are having. Sometimes, there is a related feature to enable or a field to fill out that we miss during the instructions. If this article didn't resolve the issue, please use the chat and let us know so that we can update this article!
If you liked this article, you'll LOVE our book on SuiteCommerce! Order the free SuiteCommerce book today, and we'll even pay for shipping!
If you have general questions about SuiteCommerce or more specific questions about how our team can support your business as you implement NetSuite or SuiteCommerce, feel free to contact us anytime. Anchor Group is a certified Oracle NetSuite Alliance Partner and Commerce Partner equipped to handle all kinds of NetSuite and SuiteCommerce projects, large or small!
We are a premium SuiteCommerce agency that creates powerful customer portals. Unlike our competitors, we have already solved your problems.