How to Add Google Analytics to WooCommerce

Add Google Analytics to WooCommerce

Are you looking for a way to add Google Analytics to WooCommerce store?

It is not a complicated process to set up WooCommerce Google Analytics to track your online store.

If you track your store, you can understand and improve the overall journey for your website user.

It allows you to make well-informed decisions concerning your store.

Importance of Google Analytics

It is important to have Google Analytics on any site.

This is because you are provided with great free tools included in the analytics program that will help you optimize your website.

You can also view all the data you need to become more relevant online.

It will provide you with a tracking ID on your website that helps Google index your site properly.

The tracking ID allows you to see data, which can help you make more sales or suggestions on how you can market your business.

Google Analytics has an eCommerce tracking option.

This option gives you detailed insights into all the purchases that are made in your store.

By the end of this post, you will be able to integrate Google Analytics into your store. You can install it manually, but there are some drawbacks to using this method.

We will also show you how you can add Google Analytics to your store using the MonsterInsights plugin.

Let us see how you can achieve this.

Steps to Add Google Analytics to WooCommerce Without a Plugin

First, we will add Google Analytics without a plugin.

But before we start, we recommend that you back up your WordPress theme, so that in case something goes wrong, you can revert to the previous version.

This is because we will be directly editing the code that outputs your site.

Therefore, even if you make the slightest mistake, it will bring down your site.

Here are the simple steps you need to follow:

  1. The first step is to log into your Google Analytics account and select the website for which you need the tracking code.
  2. choose website
  3. Click on Admin in the left taskbar.admin
  4. After that, go to the property column and click Tracking Info, and then Tracking Code.
  5. tracking code
  6. You will get the tracking code under the Website tracking section. You need to copy the Google Analytics script:
  7. copy tracking code
  8. To place the Google Analytics tracking code on your website, log in to your WordPress dashboard and navigate to Appearance » Theme Editor. Now click the Theme Header (header.php) file on the right-hand side below the Tempe Files section.
  9. Paste it before the closing </head> tag, as shown below:edit theme header
  10. Then click Update File.

The drawbacks of using this method are that you may lose your tracking code and you will miss out on powerful Analytics features like events tracking, custom dimensions, file download tracking, affiliate tracking, form conversions, and outbound link clicks.

Let us see how you can add it to your store using a plugin.

Steps to Add Google Analytics to WooCommerce With a Plugin

We will be using the MonsterInsights plugin that will provide you with a direct integration connection between Google Analytics and WooCommerce.

This allows you to add transaction information right into your Google Analytics data.

This plugin supports new Universal Analytics, eCommerce, and enhanced eCommerce event tracking.

We will walk you through the setup process. It is fairly straightforward and simple.

Here are the steps you need to follow:

  1. Log into your WordPress site and access the Dashboard as the admin user.
  2. To download it directly in the Admin Panel, simply navigate to Plugins > Add New.
  3. After that, you will need to do a keyword search for the plugin ‘MonsterInsights’. You need to install and activate it as shown below:activate
  4. Once the plugin is up and running, all you have to do is use its setup wizard to add Google Analytics. You do not need any coding skills to do this.
  5. If you are using the pro version, you need to complete the connection by adding the license key:
  6. After you’ve added Google Analytics, MonsterInsights will display all your important data in the admin area. you can view different reports and uncover insights about your visitors.

Conclusion

That is all you need to do to set up WooCommerce Google Analytics on your website. You can log in to your Google Analytics account to track all of the eCommerce data coming from your online store if you have used the manual method.

You can also use MonsterInsights to add Google Analytics to WooCommerce. It integrates seamlessly with your WooCommerce store to help you track your data.

When you have the right data, you can always generate more sales and increase traffic.

Similar Articles

  1. 100+ Tips, Tricks & Snippets Ultimate WooCommerce Hide Guide
  2. 5+ Best WooCommerce Store Examples