How to Stop Google Analytics from Tracking Logged
Do you want to stop Google Analytics from tracking logged in users? By default, Google Analytics tracks each and every pageview on your site, including admin pageviews and visits by bots. When you’re writing, editing, and previewing your site, it records each of your visits as a real pageview and prepares reports including those logged in pageviews.
The downside of those reports is that they prevent you from seeing your real website metrics. So, in this article, we’ll show you how to exclude WordPress admin (logged in users) from Google Analytics tracking.
Why Exclude Logged in WordPress Users from Google Analytics?
Google Analytics is the most popular web analytics tool and helps you to track how your site visitors are interacting with your site. It provides you with detailed reports on your site traffic and users’ behavior on your site. Using your Analytics data, you can make informed marketing decisions to grow your business.
However, your analytics data can be misleading if it’s not precise.
There’re many reasons why Google Analytics data can be inaccurate. One of the most common reasons is tracking logged in users. When you’re logged in as administrator, author, editor, or any other user role and previewing your site, Google Analytics counts your visits as real visits and adds to your site’s total visits.
As a result, you may see a spike in your pageviews; but that isn’t due to an actual traffic increase. That’s simply because Google Analytics is tracking your admin visits as real visitors.
For example, if you’re frequently working and editing on your site, you’ll see a huge increase in traffic. Similarly, you may see a remarkable traffic increase on a page/ post after you’ve done some modifications to it.
This distorted data cannot help you improve your marketing. So, it’s always better to ensure that your own visits are not tracked by Google Analytics.
How to Exclude WordPress Admin from Google Analytics Data
There’re many ways to stop tracking WordPress admin visits in Google Analytics. For example, IP address filtering. Creating an IP address filter whitelists your IP address and stops tracking visits originating from that specific IP. That way, it doesn’t confuse the actual traffic with your own traffic.
However, the downside is it’s only applicable if you’re using a static IP address that doesn’t change.
A much better solution is to disable logged in visitors tracking, so you can stop tracking your own visits on your WordPress website, even if you’re using a dynamic IP.
Fortunately, there’s a very simple solution! MonsterInsights makes it really easy to exclude WordPress admin traffic from Google Analytics.
Before we get started, we’re assuming that you’re using MonsterInsights on your site and have configured it with Google Analytics.