This may be useful for online store owners that are wondering whether their installed Google Analytics (GA) works as it should on their site.
The biggest implication of incorrectly installed GA would be incomplete and unreliable web analytics data, inability to assess the effectiveness of marketing campaigns.
There are several methods to verify if Google Analytics on Yahoo store is implemented correctly or not.
The simplest way is to use Google Chrome Extension called GA Debugger. It’s a tool that can show what information is sent to Google via small request (called beacon).
You can find instructions how to install and use it here:
After successful installation, you should have a button next to the address bar like that:
Now you are ready to check your online store.
1. Open Chrome
2. Clear all cookies, cache, and browsing data
This step is optional but strongly recommended for the sake of a “clean slate” test.
- Paste the following line into Chrome address bar:
- Hit Enter
- In the dialog window that pops up, select “the beginning of time”
- Make sure “Clear browsing history”, “Delete cookies and other site and plug-in data”, and “Empty the cache” are all checked
- Click Clear browsing data
3. Open Developer Tools
Press F12 or Ctrl+Shift+I or select Tools->Developer Tool
In Developer Tools window, click on Console tab. GA Debugger extension will post messages in the Console window.
4. Open your site
You can do it either directly by typing your store home page URL in the address bar, or you can open Google page (or other search engines) and find your site pages.
For this example, we are going to do the last option. This way it will provide more information like source and keywords (organic).
5. Check Console in Developer Window
As soon as your page opens, and your GA setup is correct, you should see in the console something like this:
You’ll see some interesting information displayed.
Firstly, you can see what functions were executed (setAccount, setDomain, trackPageView).
Secondly, you’ll find a tracking beacon request that was sent followed by detailed information like Campaign Source, Campaign Medium, SessionStart time and so on.
However, more importantly for us, there’s a Visitor ID. In our example, it is 1135739772. Take a note of that variable, as we’ll need to verify it at a later step.
6. Go to item page
Navigate to any item/product page. Once you land on that page, the Developer Console will be updated, and a new beacon request will be posted, thus verifying that your GA is working correctly on item pages.
7. Add item to the cart
This is an important step, and specifically for online stores that are hosted on Yahoo!Small Business platform, this is actually the moment of truth.
On Yahoo stores, when adding an item to the cart, the browser is redirected to a shopping cart that is hosted on a different domain (hosted by Yahoo).
If GA is installed properly, the visitor’s session should be maintained and stay the same after it has been redirected to a shopping cart page.
- Check if request was sent at all. If it was sent then at least you have GA script on shopping cart page. Some store owners would just put GA script in a header variable thinking that it should be enough but never address the 2nd point.
- Check Visitor ID. If it’s the same as the one that we noted in Step 5, then the session was maintained after redirection. Your GA setup is OK.
However, if it’s not the same, then a new session was created. That means your GA is not installed properly, and you should get a better implementation of Google Analytics.
8. Complete test order
For those that will actually complete the test order, they can observe a confirmation page beacon that will contain the actual transaction info.
If everything is set up correctly, you should see a special request type – tran. It will have transaction information like order number, the total with the items that were ordered. It will look similar to this:
As you see, it’s quite easy to ensure the correctness of your GA installation on your online store.
However, if you do not want to do it yourself, you can always submit your store for verification to our developers. Please email us at firstname.lastname@example.org with your store URL, and we will be happy to send you a report regarding Google Analytics installation and our recommendations.
Also you can check our product – http://www.nakamoa.com/google-analytics.html.