Pricing
Written by Editorial Team on February 11, 2020

How To Disable Google Analytics Tracking For Administrator In WordPress

How to stop Google Analytics from tracking logged in WordPress users?
How to stop Google Analytics from tracking logged in WordPress users?

Google Analytics is one of the best analytics tools for WordPress websites. But, one of the most common challenges website owners face is getting analytics that includes the 'movements' and 'actions' of the website administrators. In this article, we will share how you can disable Google Analytics tracking for Administrators in WordPress.

Why Should I Disable Analytics Tracking For Administrators?

You don't want to track what your website admins are doing (most of the time). Instead, you want your analytics to be clean and focused heavily on your website visitors, members and other engagement metrics.

The goal is to get the most accurate stats possible for your site. In part, this means ensuring site admins and editors (or any other levels) do not skew their own site stats.

Do you know that it is really complicated to exclude administrators 'actions' on Google Analytics report?

Step By Step To Disable Google Analytics Tracking For Administrators In WordPress

These are simple steps to disable Google Analytics tracking for administrators.

  • Option 1: Use Google Analytics plugins
  • Option 2: Manually exclude Administrator's IP in Google Analytics Option 1: Use Google Analytics plugins

Using Google Analytics Plugins

If you want to exclude administrators or any specific levels from Google Analytics tracking, the easiest way to do so is by installing Google Analytics plugins.

WP Maven uses MonsterInsights (learn more about the plugin here) and it is really easy to configure.

Head over to Plugins » Add New » Search for "MonsterInsights".

Download MonsterInsights Google Analytics Plugin
Search and download MonsterInsights

Next, click Install and Activate the plugin. Once both of these are done, you will be greeted with an easy to use setup wizard.

Setting Up MonsterInsights Google Analytics Plugin for WordPress
MonsterInsights setup wizard

The setup wizard is pretty easy and straightforward. Follow these steps and you will be ready to go in the next few moments.

By default, MonsterInsights disable Google Analytics tracking for administrator level.

If this is the first time you are using MonsterInsights, you will be greeted with a text notification "MonsterInsights had disabled tracking for Administrators."

You can also disable Google Analytics trackings for other user roles in WordPress. Head over to WordPress admin » Insights » Settings » Advanced.

How to exclude Google Analytics tracking using MonsterInsights?
How to exclude Google Analytics tracking using MonsterInsights?

Search for "Exclude These User Roles From Tracking" and select the user roles from the drop-down button. Add the user roles and don't forget to hit the Save Settings.

How To Manually Disable Google Analytics Tracking?

This method is workable (to disable Google Analytics tracking for Administrators) but only for certain scenarios. Here's how it is done correctly.

Here's how you can create an IP address filter:

  1. Follow the instructions to create a new filter for your view.
  2. Leave the Filter Type as Predefined.
  3. Click the Select filter type drop-down menu and select Exclude.
  4. Click the Select source or destination drop-down menu and select traffic from the IP addresses.
  5. Click the Select expression drop-down menu and select the appropriate expression.
  6. Enter the IP address or a regular expression. See the examples below.

This method of disabling Google Analytics tracking is best for administrators who are using fixed IP addresses. If you have a dynamic IP address, this method is not useful/effective.

Conclusion

Both the above methods are effective in disable Google Analytics tracking for administrators in WordPress. If you are looking for a quick and easy solution, installing the free MonsterInsights plugin for WordPress is the best way to go with (and we recommend this too)!

WP Rocket - WordPress Caching Plugin
Article written by Editorial Team

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts

crossmenu