How to Set Up WordPress User Activity Tracking in 3 Easy Steps

Do you want to track user activity of your logged in users? By enabling individual user tracking, you can accurately track your logged in users across multiple devices.

Let’s take a look at how to set up WordPress user activity tracking in Google Analytics.

What is User Activity Tracking in Google Analytics?

If you run a community-powered site in which you want your users to register an account, like eCommerce, membership, BuddyPress sites, etc., you’ll need to enable user activity tracking on your site.

Enabling user activity tracking on your site provides you with lots of benefits.

  • Detect how your registered users use your site across different devices.
  • Accurately track unique visits and interactions that help you to map individual buyer journey.
  • Create a personalized user experience on your site to boost conversions tailored to each individual user’s preferences and interests.

Let’s take a look at some use cases of how user activity tracking can help you.

1. Accurately Track Unique Users

User activity tracking allows you to accurately track your individual users even if they logged in from different devices. When you enabled WordPress user activity tracking, instead of a Client ID, Google Analytics will start using WordPress user ID to identify registered users.

The Client ID represents the unique device from which users engage with your content.

user explorer client id

That means if a unique user browses through your website from two different devices, it will be counted as two different users, not a single user.

By enabling WordPress user activity tracking, you can track individual logged in users more accurately even if they visit your site from different devices.

hover to see user ID

For example, if a person arrives at your site through a particular campaign from their phone and then completes a conversion from a desktop, you can link that conversion back to the campaign and better understand the user journey.

Not only will you be able to track the engagement data of each unique user, but you can discover what devices they use and track multiple sessions over an extended period of time.

2. Create a Personalized User Experience

By tracking individual users on your WordPress site, you can identify what each customer has done on your site. For example, if you find that a particular user with a user id #26 has added some items to the shopping cart and later abandoned the cart, you can find the name and other details of that person by looking at your WordPress admin panel.

You can even provide a personalized user experience on your site tailoring to their interests and preferences to boost conversions.

How to Track WordPress User Activity Tracking

The easiest way to track WordPress user activity is by using MonsterInsights. MonsterInsights replaces the anonymous Client ID with the WordPress user id with just a few clicks.

Step 1: Install MonsterInsights

The first thing you need to do is to install and activate MonsterInsights on your site. Then, you’ll need to properly connect Google Analytics with MonsterInsights.

Step 2: Enable User Tracking in MonsterInsights

Navigate to Insights » Settings in your WordPress dashboard. Then, click on the Tracking tab at the top of the page, and then click Demographics in the menu on the left.

From here, you can check the Enable User ID tracking checkbox. Don’t forget to click the Save Changes button at the bottom of the page.

enable user tracking in monsterinsights

Step 3: Enable User Tracking in Google Analytics

Now you’ll need to enable user tracking in Google Analytics and create a new UserID view.

You’ll need to 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 see a brief success message. Then, click the Google Analytics logo at the top of the page.

How to Find the User Activity Tracking Report in Google Analytics

analytics-logo

You can now access your new User-ID view.

user id

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 report

Wondering how to tell which WordPress user belongs to which ID? To find out, 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 in 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

We hope this article helped you to accurately track your logged in customers.

If you enjoyed this article, you might also want to read the beginners’ guide to custom dimensions in Google Analytics.

And don’t forget to follow us on Twitter and Facebook for more Google Analytics tutorials.

Comments

    Nico Puno

    Cool! This made me understand WordPress User Activity Tracking in the simplest way possible! I’ve been looking for this actually. Anyway, thank you so much for sharing this 3 easy steps to set up WordPress user activity tracking!

    Reply

Leave a Reply

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.