How To Stop Google Analytics From Tracking My Own Visits & Page Previews

Google Analytics is one of the topped and widely used analytics tools. It helps us to track the traffic which we receive on our blog or website.

People can track visitors’ locations, IPs, browsers, etc and even can check that how many users are in real-time on our blog or website. It is completely free and a preferred analytics tool for webmasters.

  • How to set up the Yoast WordPress SEO Plugin
  • Rank Math SEO Plugin review and how to setup
  • How To Easily Bulk Delete All WordPress Comments From Database

Do you know, It also tracks you? Irrespective, you are logged in or not.

I was too facing this problem for a long time. Due to self-tracking, my Google Analytics report was not showing me the correct sessions and active users count. I was not getting the correct analytics data. It was tracking every preview of my blog post which I was checking while writing a post.

After long research, I knew that we can stop Google Analytics from tracking our own visits and previews. It helped me a lot and stopped Google Analytics from tracking my own visit and preview.

How Stop Google Analytics From Tracking My Own Visits?

I found three ways to prevent Google Analytics from tracking my own visit. Let me explain to you one by one.

1. Stop Tracking By IP Address

First of all, locate your own IP address by using http://whatsmyip.org/ and add that IP address to the exclusion list.

Let’s say your IP address is 192.168.0.01 then copy that IP and follow the following steps.

1. Login to Google Analytics
2. Click on Admin
3. Click on filters inside view property

google analytics

4. Click on Add Filter
5. Create a new filter
6. Filter name
7. Check Exclude

block-and-exclude-IP

8. Now select traffic from the IP address and put an IP address in the text box.

put-ip-address

9. Now select expression (see step 5 in below image) and choose “that are equal to” and click on save.

block google analytics by ip

This way, Google Analytics will stop tracking if traffic comes from the excluded IP address.

2. Stop Page Previews In Google Analytics [For WordPress Users]

Tracking page previews by Google Analytics is really a pain for everyone. We preview our post countless times before publishing it to ensure that everything goes correctly. But at the same time we preview a post, Google tracking codes also get reloaded and tracks every preview.

It badly impacts our analytics figures and we get the wrong report.

preview-track in google analytics

To stop the tracking of page previews, follow the following steps:

1. Follow the same steps as explained above like

    • Analytics login
    • Click on Admin
    • Click on filters inside view property
    • Add filter
    • Create a new filter and give filter name

2. Now click on Custom
3. Select “Request URI” from excluding filter field

exclude previews in google analytics

4. Now use “preview=true” in Filter Pattern and click on save

stop google analytics tracking for page previews

In this way, Google Analytics will not track your page previews.

3- Stop Google Analytics Tracking For Logged In Users In WordPress

If an admin is logged in, it also gets tracked by Google Analytics. To stop this tracking, you need to create a filter inside the Google Analytics account.

Follow the same steps explained in the 2nd method. The only change is, you need to use wp-login.php in the Filter Pattern section and click on save. See the below image.

exclude loggin users in WordPress from tracking

You can also set any other rules to exclude other pages tracking in this way.

With the help of the above tricks, you can stop Google Analytics from tracking your own visits and page previews.

Leave a Comment