How to Set Up Individual WooCommerce Customer Tracking

Want to provide a personalized shopping experience on your WooCommerce store? Then, you need to set up individual WooCommerce customer tracking to understand the shopping behavior of your logged in customers. In this article, we’ll show you how to set up individual WooCommerce customer tracking.

Why Set Up Individual Customer Tracking?

If you require customers to log in to your WooCommerce site to purchase products, you need to enable customer tracking on your site. Some of the benefits of individual WooCommerce customer tracking are:

Personalize Shopping Experience

As shoppers become more tech savvy, they expect merchants to provide a personalized shopping experience just for them.

MonsterInsights is the best WordPress Analytics plugin. Get it for free!

To create a personalized shopping experience, you need to set up logged in customer tracking on your site that enables you to learn the shopping and checkout behavior of each individual customer. For example, when you know individual shopping behavior and preferences, you’ll be able to offer product recommendations that conform to the shopper’s specific taste.

provide personalized recommendations by tracking woocommerce activity log

When customers are shown products that match their individual taste, they’re more likely to purchase products from your store.

Compare Guest Checkout Versus Logged in Checkout

WooCommerce allows you to offer guest checkout on your store that enables your customers who are in a hurry to purchase products without having to register an account with your site.

guest checkout

When you offer guest checkout on your store, you might want to compare the performances of both your registered customers versus guest customers. Understanding the performance of your guest users allows you to optimize your site for the general audience based on what resonates best on your site.

Enabling Individual Customer Tracking on WooCommerce

Using MonsterInsights is the easiest way to enable individual customer tracking on your WooCommerce store.

By default, Google Analytics identifies every customer of your WooCommerce store by assigning them a unique ID known as Client ID. The downside to this approach is that Client ID doesn’t allow you to accurately track individual customers since it represents the unique device from which users shop on your site.

user explorer client id

For instance, if a shopper engages with your store using two different devices, it will be counted as two different users, not a single user.

To better track logged in users, MonsterInsights uses the unique WordPress user ID assigned to each individual user instead of Client ID.

Finding User ID of Each Individual User

To find the WordPress user id of your users, just go to your WordPress dashboard and click on Users » All Users.

Then, hover your cursor over the user you want to find the ID for. You’ll see a URL appear at the bottom of your browser. In the middle of the URL, it will say “user_id=”. The number after that is the user’s ID number.

hover to see user ID

You can click the Edit link under the username to make sure. You’ll see the user ID in the web address on the edit page.

find user ID in the URL

MonsterInsights replaces the anonymous Client ID with this WordPress user id with just a few clicks.

Setting Up WooCommerce Customer Tracking

Step 1: Install MonsterInsights on Your Site

The first thing you need to do is to install MonsterInsights on your site and connect it with Google Analytics. For more help on this step, you can learn how to properly connect Google Analytics with MonsterInsights.

Step 2: Enable User Tracking in MonsterInsights

Then, go to Insights » Settings in your WordPress dashboard. Click on the Tracking tab at the top of the page, and then click Demographics in the left taskbar. From here, you can check the Enable User ID tracking checkbox. Be sure to click the Save Changes button at the bottom of the page.

enable woocommerce user activity tracking in monsterinsights

Step 3: Enable User Tracking in Google Analytics

Now that you’ve enabled user ID tracking on MonsterInsights, you’ll now need to create a new UserID view in Google Analytics and enable it.

To do this, log in to your Google Analytics account and select the website you’d like to enable user tracking for.

click on google analytics view

Then, click Admin.

click admin

Now click the Tracking Info link in the center column to expand the submenu, and click the User-ID link that appears below.

click User-ID in the middle column

On the next page, you’ll have to click the Off switch to On and click the Next Step button to agree to the User-ID policy.

agree to the user id policy

In step 2, you don’t need to do anything but click Next Step again.

click next step to continue

In step 3, just click the Create button to create the UserID view.

click the create button

Next, you will be taken to this screen where you will have to enter a Reporting View Name (we recommend including UserID in the name so it’s easy to remember which view has UserID tracking enabled).

enter a name

Finally, you can scroll down and click the Create View button.

click create view

You’ll now see a brief success message. Then, click the Google Analytics logo at the top of the page.


You can now access your new User-ID view.

view user id analytics

Then, just click on Audience » User Explorer in the left menu to see your user data. You’ll see that each user is now listed by their user ID in WordPress.

user explorer overview

You can click on the User ID to see more detailed info on each user.

user id analytics

Compare Your Logged in Users vs. Guest Users

MonsterInsights even allows you to compare the performance of your logged in users with your guest users. To compare between them, you need to enable Logged in custom dimensions tracking on your site.

In Google Analytics, custom dimensions are just like default dimensions such as gender, region, all pages, traffic sources, etc., except you create them yourself. Custom dimensions are greatly helpful to collect and analyze data that matter to your website, which Analytics doesn’t automatically track.

By enabling Logged in custom dimensions, you can compare the engagement of your logged in users with non-logged in users (guest users).

For more about custom dimensions, you can refer to the beginners’ guide to custom dimensions in Google Analytics.

Follow the below steps to enable Logged in custom dimensions on both your site and your Google Analytics account.

Step 1: Install the MonsterInsights Custom Dimensions Addon

To install the addon, visit the Insights » Addons page in your WordPress dashboard. Then, click Install under the MonsterInsights Custom Dimensions addon.

install custom dimensions addon

After installation is complete, the button will change to say Activate. Go ahead and click the Activate button to make sure the addon is active and ready to use.

activate the custom dimensions addon

Step 2: Add Custom Dimensions in MonsterInsights

Navigate to Insights » Settings. Now click on the Tracking tab on the upper tab row, and then to the Custom Dimensions tab on the left tab row.

enable custom dimensions

Now click on Add new custom dimension and select Logged in from the dropdown menu. Once you are done selecting, click the Save Changes button.

enable logged in custom dimensions

How to Compare Logged in Users With Guest Users in Google Analytics

To compare logged in users with guest users, you’ll need to create a custom report in your Google Analytics account.

Log in to your Google Analytics account, and select the right website from the list.

click on google analytics view

Then, click the Customization / Customisation tab in the left panel.


You can now click the + New Custom Report button.

create new custom report in google anlaytics

Now you’ll need to tell Google Analytics what to include in your report.

Let’s create a report to show us whether your visitors are logged in to your site (“true”) or not (“false”). Let’s name our report Logged in Custom Dimensions. Under Metric Groups, click the + add metric button. Type pageview” in the search field. Then click on the Pageviews metric under the Users heading.

create a custom report for logged in custom dimensions

After that, you can click the + add dimension button and then, under Custom Dimensions, click Logged in.

set up individual woocommerce customer tracking

When you’re done, click the Save button at the bottom. Now you’ll be redirected to your new report.

woocommerce Logged In Custom Dimension

That’s it!

We hope this guide helped you to learn how to set up individual WooCommerce customer tracking.

For the longterm success of your WooCommerce shop, you might want to keep an eye on the customer lifetime value report in Google Analytics. And check out our list of the best WooCommerce plugins to grow your traffic and sales.

You can also follow us on Twitter and Facebook for more free tutorials.

Want to Try MonsterInsights for Free?

Enter the URL of Your WordPress website to install MonsterInsights Lite.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.