WooCommerce – How to Integrate Analytics on your Store

0
560

Integrating analytics is an important step in understanding how your potential customers are reaching out to your store and products. With the help of analytics, you gain information on who visits your site, how the visitors are interacting with your site, which channels are they coming from, etc. Let’s look into the step-by step process of integrating analytics to your website.

Signing in to Google Analytics

Firstly, you need to create an account in Google Analytics. You can use your existing Google login information for this.

Go to the login page of Google Analytics.

Logging in to Google Analytics
Logging in to Google Account

Enter your google login id and password and click Next button.

Now, you will see a new screen as below.

Signing up to Google Analytics
Signing up to Google Analytics

Click the Sign up button.

Next, you will have to add a few details related to the site you want to track.

Adding site data for Google Analytics
Adding site data for Google Analytics

In addition, you can enter some optional data like your ‘Industry Category’ and ‘Reporting Time Zone’. You can also choose the ‘Data Sharing Settings’ by ticking or unticking the check box. These are ticked by default and Google recommends enabling them.

Optional data for Google Analytics Sign up
Optional data for Google Analytics Sign up

Once you complete entering the data, click the Get Tracking ID button.

Entering Data for Sign up
Entering Data for Sign up

This will display a modal window with Terms and Conditions.

Accepting Terms and Conditions
Accepting Terms and Conditions

Once you click the I Accept button, you will get the Tracking ID and Tracking code for your website. You have to copy and paste this code into the webpages you want to track.

Analytics tracking code
Analytics tracking code

Pasting the tracking code on your website

There are multiple ways of doing this. In this article, we will discuss two simple ways.

Pasting directly to your website

You can simply copy the tracking code and paste it on your theme’s header file (header.php). To do this, you can first go to: Appearance → Editor.

Search for Theme Header (header.php). Paste the tracking code just before the </head> tag.

Pasting the tracking code
Pasting the tracking code

Use a plugin to paste the code

If dealing with codes is really not your cup of tea, you can choose a plugin from the many available for this. Here’s a list:

Read this article for more more insights on the topic.