Close

Google Analytics ECommerce tracking for WooCommerce

WooCommerce Analytics Hero

May 19, 2016

You should have Google Analytics setup on your WooCommerce store. Even if you are not using it, don’t know how to use or don’t want to use it – you should be integrated.

Seriously, I know you might not want it now, but you may in the future.

And that’s the nub of it. You cannot add data retrospectively into Google Analytics. If you don’t capture it at source, then you are stuffed.

Next year when business is good and you’ve hired your new head of marketing they’ll want to use the insights from Google Analytics to make businesses decisions.

They may want to see how many of your customers are purchasing with mobile compared to the previous year. They may want to know if certain countries no longer purchase from you.

There are a range of really important insights that can be learnt from comparing data sets. But you’ll need to be capturing this data to start off with.

That’s why we also recommend that you add Google Analytics from the get go. Even if you aren’t in a position to use it.

So you want to add Google Analytics to your WooCommerce Store

Of course, there are many other analytics tools like MixPanel, GetSquared and the like, but today we’ll be looking at the industry favourite: Google Analytics.

Google’s analytics product is comprehensive. They capture a huge amount of data for you to work with. It’s a free product (with a premium offering for more enterprise use cases). This has meant it’s become a weapon of choice for many marketing professionals.

Installation is not hard.

Because it is so prevalent, there are a good few integrations already out there. However, there are some settings that you’ll need to have setup to get the most out of the integration.

A fool-proof way to get your e-commerce tracking with WooCommerce setup

Before I talk about how you can go about getting Google Analytics integrated with WooCommerce, I have a great trick. A trick that we used.

Ok, so it’s not really a trick. Just to say that Google can help you get your ecommerce tracking setup.

They’ll help you over the phone. They are really good at it.

So, the trick is they will help you get your Google Adwords ecommerce tracking setup. During this process, you can also get your Google Analytics tracking setup.

It’s good to get both of these setup together. Having the phone support is really useful. I was particularly impressed with how patient and thorough the integration team were.

You’ll need to have a test product ready to purchase. When I do this, I create a product for £1 and then refund it afterwards.

It’s better to use a real product when testing. It does cost a bit of money but you can refund it and it’s important to test these integrations with real world purchases.

The manual way of adding Google Analytics ecommerce tracking for woocommerce

Ok, so rather than having the Google team walk you through this, you want to do it on your own. Great!

There are a number of plugins out there that can be used to integrate WooCommerce with Google Analytics. We suggest using the official plugin from the WooThemes team – imaginatively called WooCommerce Google Analytics Integration.

Once you have the plugin installed and activated from the WordPress repository you can head to WooCommerce > Settings > Integration to see the Google Analytics tab where you can add your Google Analytics ID.

This ID looks like UA-XXXXX-X

To find this:

1.  Sign in to your Analytics account.
2.  Select the Admin tab.
3.  Choose account from the dropdown in the ACCOUNT column.
4.  Choose property from the dropdown in the PROPERTY column.
5.  Under PROPERTY, click Tracking Info > Tracking Code.

We recommend the following settings:

  • Do not set optional domain name
  • Enable Standard Tracking
  • Don’t enable display advertising
  • Enable Universal Analytics
  • Don’t anonymise IP address
  • Enable Purchase Transactions
  • Enable Add to Cart Events
  • Don’t enable enhanced eCommerce

These settings set you up for a basic setup with ecommerce tracking. The checkout page and order complete pages will have the Google Analytics javascript added to track completed orders.

You can select different options for your unique setup, but these settings will provide the integration you require for basic ecommerce tracking.

3 Comments on “Google Analytics ECommerce tracking for WooCommerce

info@gokidmusic.com
August 25, 2016 at 2:55 pm

Thanks YoGrow – hope this works, I have really struggled to get GA linked to my Woocommerce store…lets see!

Reply
Zeta
September 20, 2017 at 3:26 pm

Hi! Great article! I have already set my GA code into my functions.php. But i noticed cart page is not being tracked.
Do you suggest installing this plugin and deleting code inserted on functions.php?

Reply
Elliot
September 25, 2017 at 9:30 am

Yes, that should do the trick. Good luck!

Reply

Leave a Reply