
How To Turn Off Google Analytics Tracking For Logged in WordPress Users – Avoid False Traffic Data
Setting up Google Analytics tracking in the right way is very important otherwise one may end up getting inaccurate reports on your website’s traffic. Google Analytics, by default, tracks each and every view of the pages that anyone visits on your site.
Why to Not Track WordPress Logins
Sometimes we see spikes in traffic which are hard to understand and it will say that it’s direct traffic. So either a lot of people just happened to be on your website or something wasn’t recorded accurately.
Maybe it was that you or your developer logged into the website multiple times and that got recorded by the Google Analytics. This information can confuse you and it will not give the right results for your marketing dollars. You want to make sure that you get your money’s and time’s worth.
So how to avoid that? I have outlined the steps below to stop tracking spurious traffic resulting from admin WordPress logins.
Steps To Avoid Direct WordPress Admin Logins
There are numerous approaches to disable Google Analytics tracking for WordPress admin logins in Google Analytics.
For example, you can set up an IP address filter. You can whitelist your IP address and stop tracking visits coming from that specific IP. That way, you can stop tracking all the direct logins coming from your website when you are logged in. But, this is only good when you are using a static IP address.
A much better solution is to disable tracking for logged in visitors users even if you are using a dynamic IP address.
Create A Filter in Google Analytics To Stop Tracking Users Logged into the WordPress
- Log into your Google Analytics account & select the website you want to set the filter for from your Google Analytics accounts (if you have multiple websites).
- Go into the admin section

- After that, click on the Filters section

- Click on the Add Filter button

- Define a filter label – I chose Exclude WordPress Admin Logins

- Select the filter type to Custom and choose ‘Exclude‘ from the options below.
- Select the Filter Field as Request URI and type in wp-login.php in the filter pattern
- Hit the save button
Now you are all set and Google Analytics won’t track your WordPress users. Easy peasy!
If you have any questions about this please drop a comment below. I will be happy to help!
Recent Comments