Configure Google Analytics in ShopSite

Last time, I covered why ShopSite made the switch to use Google Analytics for Traffic Reports.  This time, I’ll cover setting up Google Analytics within ShopSite.  First, go to Merchandising Tools > Google Services > Google Analytics, where you’ll see the following:

If you don’t have a Google Analytics account, click the “Wizard” button to start the configuration wizard and ShopSite will walk you through the steps.  Alternatively, you can watch this video tutorial.

Once you have your Google Analytics account, you can find your tracking code on your Website Profile page.  The account tracking code looks something like UA-123456-1.  Returning to ShopSite’s Google Analytics page, select the radio button to enable Google Analytics, select “Asynchronous Google Tracking,” paste your account tracking code in the “Google Analytics Tracking Code” field, and then save the configuration.  Publish your store to add the code to all of your ShopSite generated pages, including the shopping cart pages, and that’s it!

Google Analytics was originally a product from a company called Urchin, hence the original tracking type “old Google Tracking (urchin.js).”  While we’ve included it there for legacy support, you shouldn’t ever need to choose that setting.  The same is true for the “New Google Tracking (ga.js)”.  “New” is a bit of a misnomer, as it has already been replaced by the “Asynchronous Google Tracking” type.  If you select “New Google Tracking,” the entire web page with the tracking JavaScript code must load before the page is displayed to the user.  This is why designers would put the Google Tracking code as the very last thing on a web page.  The Asynchronous Tracking code solves this problem by allowing the web page to be displayed while the JavaScript code is loaded in the background.

If you have web pages that are generated outside of ShopSite, you will need to manually place the appropriate JavaScript code on each page.  You can get this code from the Google Analytics site or ShopSite can generate it for you and display it in the “Google Analytics Script” box.

Google Analytics integration is available in Pro and Manager service levels of ShopSite.  Starter merchants will need to get the code directly from Google and manually place it in their store pages and in the header or footer of their Shopping Cart pages.

Why ShopSite Traffic Reports has Moved to Google Analytics

ShopSite first integrated with Google Analytics with ShopSite Pro v8.2 back in 2007.  More recently, that functionality was introduced to ShopSite Manager in v10.  Even though ShopSite supported Google Analytics for tracking web site traffic and analysis, ShopSite also had its own limited site traffic reports that a Manager or Pro merchant could use.  Now with ShopSite v11, the reporting feature has been rewritten to focus on sales tracking and analysis; site traffic for new installations will be tracked exclusively via Google Analytics.  So why the switch?

First, I should note that almost all web servers have the ability to log access made to each web page and to every image accessed on that web page.  It is this web server-generated log file that ShopSite read and pulled data from to generate the reports.  The advantage to this is that you can get real-time data, since the instant a user views a page, it is logged by the web server.  The disadvantage to this method of reporting is that, for heavily trafficked sites, the log files can become so large and unwieldy that it would take ShopSite a long time to read and compile the data.  Also, when the web server’s logs do get large, they are often automatically rotated (e.g. compressed and archived), making them unreadable to ShopSite.  If you did not view the ShopSite report before the log file was rotated, that data would never be entered into ShopSite’s traffic report. Also, there are some web servers that store the logs in a location inaccessible to ShopSite, making it impossible to report.

Google Analytics, in comparison, works by placing a small piece of JavaScript code on every page to be tracked.  When a user views the page, the JavaScript code executes and logs the access on Google’s server.  Besides storing the data on Google’s server and not taking up additional space on the merchant’s server, Google has many tools for analyzing the data.  From straight numbers to graphical charts, Google Analytics is incredibly feature-rich.  It tracks and displays more information than ShopSite’s site reports, such as which countries visitors are coming from, which browsers and OSes they are using, search engine keywords they may have used to find the site, mobile access to the site (including device type), as well as average time on the site, bounce rate, and so forth.  The one disadvantage is that Google does not give you real-time data.  Instead, the data is usually a day behind (up to date for the previous day and earlier.)

Google Analytics is free and powerful.  Instead of trying to duplicate exisiting Google Analytics features, we decided to improve the Sales reporting.  For stores that upgrade, the old site traffic reports are still available if the merchant does not want to make the switch to ShopSite’s new reports.  But I bet that most will want to use Google Analytics and ShopSite’s new Sales reports.

Next time I’ll cover Configuring Google Analytics in ShopSite.

 

ShopSite and Google Product Search

Last time, I discussed the value of having your products listed in Google Product Search.  Now I’d like to show you how easy it is for merchants that are using ShopSite Manager or Pro to submit products to Google Product Search.  If you are using ShopSite Starter, then you only have a few products, so you can quickly and easily enter your products into your Google Product Search account by hand.  But if you have many products, both ShopSite Manager and Pro make it simple to submit your products to Google.  In ShopSite, go to Merchandising > Google Services > Product Search and click the Configure button.  Let’s break it down by section. Starting at the top, you’ll see the following:

The first thing to notice is that there are two ways to submit – FTP and API.  The FTP method is used if you have many products (as in, over a couple hundred.)  It creates a file and places it on Google’s upload server that Google retrieves at their convenience, so you may not get an immediate response as to whether the feed was accepted or not.  The API method gets an immediate response from Google for each product submitted, so you can quickly know if it was successful or not.  Depending on which method you use (FTP or API), you would fill in the appropriate fields from your Google account.

The next section of the Configuration screen allows you to set up an e-mail reminder:

When you submit your products to Google, you indicate when they will expire (Monthly, Weekly, or Daily.)  Ideally, you will resubmit your products before they expire, since it may take Google a day or two before the products are validated and relisted.  The next Configuration section allows you to map Google Merchant Center Fields to the corresponding ShopSite field.

In the example settings above, ShopSite uses the Product name as the Title field that is sent to Google.  Likewise, the Regular price is sent for the Price field (we could have also used the On Sale price) and so forth.  You can also indicate the Quantity on hand, the Weight, the landing page that Google will link to, etc.  Google also wants to know the Product Type.  When you create a product in ShopSite (Products > Add a Product), you have the option to set the Product Type as illustrated below.

 

If you’ve indicated that ShopSite should include this product in the feed sent to Google, then the other fields will also be sent for the corresponding categories.

Recently, Google began requiring that two out of three unique product identifiers be sent for each product — Brand, Global Trade Item Number (GTIN), and/or Manufacturer Part Number (MPN).  A GTIN could be a Universal Product Code (UPC) or International Standard Book Number (ISBN).  In version 10 of ShopSite, merchants can add a GTIN or MPN by using an Extra Product Field (set up in Preferences > Extra Fields), as I’ve done below.

If we now go back to Google Product Search Configuration, you’ll see a section where Extra Product Fields are displayed.  Just check the appropriate box(es) to have them automatically sent when ShopSite submits the feed.

Once you have Google Product Search configured, it is easy to submit all of the products that you’ve indicated to Google with the Send Feed button.

ShopSite Online Shopping Cart Software BlogShopSite Online Shopping Cart Software On YouTubeShopSite Online Shopping Cart Software On TwitterShopSite Online Shopping Cart Software On FacebookQuestions?888-373-4347E-commerce Blog