Tracking your site traffic is a key component in fine-tuning your nopCommerce website, your product offerings, and optimizing your sales. One of the very best free tools for this is Google Analytics. Thankfully, that’s natively supported by nopCommerce; here’s how to set it up.
We will begin with the prerequisite that you’ve already set up a Google Analytics account for this site. If you haven’t already done so, start here. Once you have your UA number generated, we’ll move on to updating our nopCommerce site.
In nopCommerce Administration, go to Configuration>Settings>All Settings. Under “Setting Name”, use the funnel icon to search for all settings that contain “analytics”. You’ll see the setting “googleanalyticssettings.googleid”, with a null ID. Edit this line, and enter your site’s proper UA ID, and save the value.
After this step, you’ll need to activate the Analytics widget. You can do so here in All Settings (“googleanalyticssettings.enabled” is right above the setting you’ve just edited), or you can go to “Content Management”>”Widgets”, and set it to enabled.
Go back to the Google Analytics site, and ensure that Analytics detects the site as enabled – it may take a moment, but you should start seeing a “collecting data” message once it’s done so.