The Page Visit Tracking module of Users Insights can help you find which pages your WordPress users visit while logged in. The module allows you to specify which post types to track, as well as the user roles for which this feature to be enabled. Once enabled, Users Insights will record the visit every time the user opens one of the tracked pages/posts. With this data available, you can then search and filter your users based on the pages visited. You can also view the list of visits for each user in their profile, as well as find the most visited pages.

 

Activating page visit tracking

The visit tracking feature can be activated from the Module Options page. Once activated, you can first select the roles of the users, whose visits you’d like to record.

WordPress page visit tracking select user roleBy using this option, you can only record the visits for the users that you need to, instead of all the traffic of the existing WordPress users.

The next option allows you to specify the post types that you would like to track user page views. You can choose from all of the public post types that are registered on your WordPress installation. This includes both the default WordPress post types, such as Posts and Pages, as well as any 3rd party plugin post types.

WordPress page visit tracking select post type

Please keep in mind that the Users Insights will start tracking user activity from the moment when you activate the feature. This means that past visit data will not be available. Additionally, the users need to be logged in in order for a visit to be recorded. Also, Users Insights does not record the full URL of the page visited (with the parameters passed), but just the ID of the page.

Another thing to keep in mind is that Users Insights by default stores the last 300 visits, which means that for the users who have more than 300 visit records, the oldest records will be removed. You can configure this number by using the usin_events_max_items_to_store filter to adjust the maximum events tracking, but we generally recommend keeping the limit up to 500.

 

Searching your users based on page visits

Once page visit tracking is enabled, you can use the Users Insights “Has visited” and “Has not visited” filters to filter your user list based on their visits.

The “Has visited” filter

As its name suggests, this filter allows you to find all the users who have visited a selected page or post. The filter provides a searchable list of all the existing posts and pages, for which WordPress user activity tracking is enabled.

WordPress search visited posts

Once you apply the filter, you can see all the users who have opened the specified page.

WordPress filter users by visited pages

 

The “Has not visited” filter

This filter works similarly to the above-mentioned filter, but it shows all the users who have not visited a selected page. There can be many scenarios when this filter can be helpful. For example, if you are running a campaign, you may want to find which users haven’t seen the campaign page yet and perhaps send them a friendly reminder.

The following screenshots illustrates an example of using this filter.

WordPress filter users by not visited pages

And of course, since the Users Insights filters are stackable, you can event combine these two filters together:

Search WordPress user visits

 

Page visits number field

In addition to the available filters, you can also explore the number of page visits that Users Insights has on record for each user. The page visits field tracks general user activity on WordPress and it is available in both the user table and filters, so you can easily filter and sort the table to find the most or least active users.

WordPress user page visit counts

WordPress page visit data in user profile

In addition to the above-mentioned filters, you can also explore the visit tracking data for each user in the activity section of the user profile page. This section includes different types of user activity data like content created, WordPress conversion tracking etc. This can help you monitor user activity in WordPress and help you track behavior patterns of the pages that you users view in the WordPress activity log.

WordPress user visit tracking data

 

The “Last Visited Pages” section lists the five most recently visited pages/posts by the user. Clicking on the View All button reveals all of the recorded visits in a modal dialog. This list additionally includes the post type of each visited post. The page list is sorted by the visit order, starting with the most recently visited pages.

 

The “Most Visited Pages” section lists the pages that the user has most frequently visited. If the user has opened a page three or more times, the page will be considered as “most visited”. The number in front of the page title is a page view count and specifies the number of visits. The list includes the 5 most visited pages. Clicking on the “View all” button reveals the rest of them in a modal dialog. This time, the list will be ordered by the number of visits, showing the most frequently viewed pages first.

 

A note on privacy

Users Insights includes some privacy options when it comes to the page visit tracking feature. From the Privacy Settings section of the Users Insights Module Options page, you can allow the page visit tracking data to be erased and exported upon user personal data erase/export request. Additionally, the plugin adds a suggested text that you can include in your Privacy Policy page. For more information on the Users Insights privacy features, you can refer to our GDPR guide.

 

Combining more filters

Users Insights allows you to combine any of the available filters in the way you like. This includes filters from theĀ supported 3rd party WordPress plugins and any of the default features filters. This means that you can use the visit tracking filters, along with many other filters to further analyze your WordPress user activity. This includes related user activity tracking type of metrics like: the number of sessions made – that counts every time a user logging into your WordPress website, the last seen metic that records the time than a user has visited your website while login. But also all the other user activity data like WooCommerce orders made or Gravity Forms forms submitted etc.

For example, if you are using WooCommerce, you can easily find the users who have opened a selected product but haven’t ordered it yet. To bring it further, you can even add a location based filter, so you can create more custom segmentations of your visit tracking analysis.

WordPress combine page views filters

 

Exporting the filtered results

If you need to export the filtered results in CSV format, you can easily do so by using the export feature. This feature allows you to export the user data in its current state. You can do it by applying the current filters and exporting the currently visible columns.

Following the example above, you can easily export the users who have visited a product, but haven’t ordered it yet. You can then import the user list to your favourite email campaign service and perhaps send them a coupon to encourage a future order of the product.

WordPress export user page views