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".
Next, click Install and Activate the plugin. Once both of these are done, you will be greeted with an easy to use 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.
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:
- Follow the instructions to create a new filter for your view.
- Leave the Filter Type as
- Click the Select filter type drop-down menu and select
- Click the Select source or destination drop-down menu and select traffic from the IP addresses.
- Click the Select expression drop-down menu and select the appropriate expression.
- 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.
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)!