Configuring Google Analytics for your Online Store
Fortunately, solving this issue is not rocket science. Assuming that your website and your online store are on the same top level domain, you can set the domain within the Google Analytics code that appears on your site and in your store. When setting the domain, the natural question is which option to pick:
yourdomain.com
or
.yourdomain.com
Most SEO expects suggest going with .yourdomain.com. If your store and your website are not on the same top level domain (this does not impact most merchants) this gets a bit more complicated since you need to use Google’s pageTracker function on the links that point from your website into your store and vice versa. More details on this topic can be found here.
Since Google Analytics is already integrated in Nexternal’s eCommerce Platform, accurately tracking referrals into your store is simple. In the Google Analytics Domain field within the Nexternal Order Management System (Settings/Edit Policies Addenda and Disclaimers), specify the domain of your website and presto, you’ll be accurately tracking customer behavior.