Google Analytics Integration In WooCommerce

Google Analytics Integration In WooCommerce


One of the important and most advanced technique to flourish your business is to us google analytics. Google analytics helps you grow your business well. Connecting this revolutionary google analytics with Woo Commerce will brings fruitful results to you.

In this blog post by Afalogodesigns, you will get all the necessary details that are needed for integrating the google analytics in WooCommerce.

Table Of Content

Here Afalogodesigns is going to tell you the following things,

  • Plugin installation
  • Plugin configuration
    1. Global site tag
    2. Standard tracking
    3. Advertising network
    4. Using the enhance link attribution
    5. Anonymizing IP addresses.
    6. 404 error tracking
    7. Transactions
    8. Add to cart system.
  • Google analytics conversation tracking

Let’s discuss each of these in detail.

  1. Plugin Installation

Plugin installation is the very first step in setting up google analytics for WooCommerce.

Most importantly, the plugins you will be going to use are of special interest. Plugins developed by WooCommerce or the plugins that WooCommerce refers to are highly suggested then working with WooCommerce.

Take an example of WooCommerce Google Analytics Integration plugin. All you need to do is to,

  • Open your WordPress admin dashboard.
  • Go to the Plugins.
  • Click on add new.
  • Add your desired plugin.
  • Install the plugin and activate it.

In the window, you will receive a message above the plugin list. Simply follow that and you are done with installation of plugin.

  1. Plugin Configuration

You can get easily directed to plugin setting by clicking on connect WooCommerce to google analytics option. After doing this simple step you have to perform the following to complete configuring your plugin.

  • Insert your google analytics ID.
  • You will get the google analytics ID. Next, you will be directed to the google analytics home dashboard.
  • On dashboard, in the bottom left-hand corner you will see Admin button. Click it.
  • Add a new account or property depending on your google analytics structure.
  • Click my Account and then create account button to create a new account.
  • Name your new account and create a new property.
  • Remember to choose web instead of iOS and android as they are specified to app creation. You are using WooCommerce which is specifically the web app.
  • Add your website URL.
  • Copy paste the tracking ID by google analytics to your WordPress admin dashboard plugin settings.
  • Check the enable standard tracking box.
  • To have more in depth reports and analytics, you can enable Enhanced Ecommerce.
  • Tap on save settings button.

Right after following these easy and simple steps you get your WooCommerce store connected to google analytics.

Now, after getting connected you need to look for various options that were set by default during the whole process.

  • Global site tag

This check box is used to enable the global site tag. This global site tag or gtag.js framework will then enable the google analytics 4 and universal analytics tracking.

  • Standard tracking

You need to check this box is you are not using some other plugin to integrate the standard google analytics.

  • Advertising network

You have to check this check box if you are going to run google ads and want to track the results. Enabling this dialogue box will track results not only through Google ads dashboard but also by analytics.

  • Using the enhance link attribution

If you are a beginner you must leave this checkbox unchecked. This enhance link attribution is basically used to enhance the in-page analytics report. This need a deeper understanding to google analytics hence it is not beginner friendly.

This enhance link attribution can easily differentiate between multiple links to the same URL on a single page. It performs this action by using link element IDs.

  • Anonymizing IP addresses.

This option is mandatory to be checked in some selected countries due to the privacy concerns.

Analytics will anonymize the IP address as soon as the customer request for IP address anonymization. It is done in the very early stages of collecting networks.

This feature usually sets the last octet of IPv4 user IP addresses and also the last 80 bits of IPv6 addresses to zeros in the memory. This is done after being sent to the analytics collection network.

  • 404 error tracking

This will help you to track the error pages that were accessed by your visitors. To keep a check on your visitor’s search or finding even if you have deleted your page this 404 error tracking is a helpful option.

To find your broken or dead links you simply need to check this box. It is undoubtedly the best option to detect all 404 errors and 301 redirects the visitors to any similar product or any similar catalog page.

  • Transactions

To track the transactions, revenues, refunds, shipping, taxes and other financial metrics you have to check this box.

In our case, we are using WooCommerce. WooCommerce supports some simple payment gateway add-ons like PayPal checkout, Stripe, Square, Braintree for WooCommerce, etc.

Without these gateways the transactions will not be tracked at all.

  • Add to cart system.

On checking this check box you will get notified every time your visitor add any product to the cart.

Analyzing the behavior and looking at the drop-off point of your customer is easier with this check box.

  1. Google Analytics Conversations Tracking

The most important metrics that need to be followed well are both- conversion rate and drop-off pages. Both of these can be tracked without going deeper into google analytics.

When you are done with the overall setting in your google analytics account, you can create a specific event. Just look for the item in the left-hand sidebar. It will be named as Conversions. Create your specific event there now.

Drop-off pages refers to the pages that your visitor accessed but didn’t make any purchase. This is also known as checkout behavior analysis. By enabling the enhanced analytics you can get the drop-off rate.