Thursday, July 17, 2025
  • Advertise with Us
  • About Us – (Naijtimes.com) Nigeria
  • Donate to Naijtimes.com Project
Naijtimes News and Entertainment
  • Home
  • News
    • Business
    • Health
    • local
    • Politics
  • Entertainment
    • Celebrity
    • Movies
    • Music
    • Video
  • Fashion
  • Sports
  • Global
    • Africa
    • Americas
    • Asia Pacific
    • Europe
  • Opinions
  • Arts & Culture
  • Login
  • Register
No Result
View All Result
Naijtimes News and Entertainment
Home Reviews

How To Use Google Analytics View Filters To Exclude Multiple IPs

Uzoma by Uzoma
Jun 6, 2018
in Reviews, Technology
0
How To Use Google Analytics View Filters To Exclude Multiple IPs
Share on FacebookShare on TwitterShare on LinkedinShare on PinterestShare on WhatsappShare on Telegram

Google Analytics View Filters To Exclude Multiple IPs

Setting up Google Analytics is easy. You simply have to install the Google Analytics tracking code on the site and BOOM! Data starts flowing through your dashboard.

Related posts

The World is Moving Fast, What Next for Nigeria and Africa

The World is Moving Fast, What Next for Nigeria and Africa

May 12, 2023
NCC Approved Unified USSD Codes for all mobile networks in Nigeria

NCC Approved Unified USSD Codes for all mobile networks in Nigeria

May 3, 2023

Right? WRONG!

One of the biggest mistakes most people make while setting up Google Analytics is they DON’T exclude internal IPs, and you may be one of them.

How many times in a day do you check your own (or your client’s) website? Once? Twice? More than ten times? If it’s more than that, you have skewed data.

The solution is to use the view filters to exclude yours and your client’s IPs from getting tracked in Google analytics.

Let’s take a look at how you can exclude:

  1. Subnet Of IPs
  2. IP Ranges (Sequential)
  3. Random IPs

How to Exclude Specific IP’s from Google Analytics for better reporting:

#1 Exclude Subnet of IPs

Let’s say you want to exclude all the subnets of IPs starting with 192.168.0.x, where x is any number.

You can create a view filter with type as ‘predefined’, then select ‘exclude traffic from IP address that begins with‘ and paste the starting part of an IP ‘192.168.0’

Google Analytics View Filter Exclude IP Subnet

Doing so will filter out all the IPs starting with 192.168.0

For Eg: 192.168.0.1, 192.168.0.2, 192.168.0.3 and so on…

Save the filter and you’re good to go.

#2 Exclude IP Range (Sequential)

IP Range can be any range of sequential IPs, for eg:

  • 192.168.0.0 – 192.168.0.9
  • 192.168.0.10 – 192.168.0.19
  • & so on…

I have seen a lot of people creating ten different filters for each IP, a very time-consuming job. The best way is to use REGEX to exclude the group of IPs in a single filter.

Here’s how you can do it.

  1. Go to view filters and create a new one.
  2. Choose Filter Type as ‘Custom’ and Filter Field as ‘IP Address’
  3. Add ‘^192.168.0.[0-9]$’ in the filter pattern

Google Analytics View Filter Exclude IP Range Sequential

The above example will exclude IP range from 192.168.0.0 to 192.168.0.9 (10 IPs).

I won’t go into much details about regex, but remember these basics:

  • ^ – denotes the start of the string
  • $ – denotes the end of the string
  • | – denotes the ‘OR’
  • – denotes the escape character.
  • [0-9] – denotes any number from 0 to 9

Lastly, save the filter.

#3 Exclude Random IPs

Well, most of the times you need to exclude the IPs of your home, office, mobile, and clients.

These IPs are neither sequential nor a part of the same IP subnet; they are random.

In that case, you can simply use the ‘OR’ in Regex which is denoted as ” | “. So if you have random IPs, say 193.168.0.34 & 127.101.1.1.

You can use ^193.168.0.34$|^127.101.1.1$

Check the image below.

Google Analytics View Filter Exclude Random IPs

As we discussed earlier ‘^’ denotes ‘starts with’, ‘$’ denotes ‘ends with’ & ‘|’ denotes ‘OR’ condition.

So, if you have five random IPs, you can simply put it in this format:

^IP1$|^IP2$|^IP3$|^IP4$|^IP5$

Click Save.

Tip #1: Use Regex Tool To Verify The Syntax

Sadly, Google Analytics does not provide the ‘preview‘ for IP address filters.

Google Analytics Preview Not Available

No worries.

You can use any Regex testing tool available online. One of them, which I use a lot, is Regextester.

You can input your Regex pattern in the above row and paste all the IPs you want to exclude in the ‘Test String’ box.

I have included four IPs in the Regex pattern and pasted the same in the Test String box (along with one extra IP).

Google Analytics IP Filter Verify Syntax

If the IPs turn blue, those are matched.

If everything goes well, you can copy the same expressions and add ^ & $ at the start/end of each IP and use it in Google Analytics.

Tip #2: Use Tag Assistant To Test Different IPs

Tag assistant is a chrome add-on which allows you to debug and test whether or not your Google tags are firing correctly.

One of the features is to change the IP address.

Tag Assistant Change Location

You can test the IP addresses which you have excluded via Regex filters one by one and click ‘update’.

Tag assistant will re-analyze the reports and show you if the hits are well filtered. You can learn more about it here.

Final Thoughts

Google Analytics filters are non-retroactive. i.e., the filters will only alter the data moving forward.

So make sure you exclude internal IPs at the initial stages of setting up the Google Analytics.

This is a guest post by Ritwik. If you would like to submit something original for ShoutMeLoud then read our submission guidelines here.

Also, here are a few hand-picked guide for you to read next:

  • 7 Popular Content Marketing Toolkit That Will Triple Your Search Traffic
  • Understanding Duplicate Content Issue In WordPress And Fix For SEO

Subscribe on Youtube

How To Use Google Analytics View Filters To Exclude Multiple IPs is a post from ShoutMeLoud – Shouters Who Inspires

Facebook Comments

Share this:

  • Share on Tumblr
  • WhatsApp
  • Reddit

Like this:

Like Loading...
Tags: blog trafficDigital Marketinggoogle analyticsGoogle Tag ManagerHow to
Previous Post

2018 World Cup: Iran is first team to arrive Russia

Next Post

Fix Broken Links & Redirections For Better SEO With Broken Link Checker For WordPress

Next Post
Fix Broken Links & Redirections For Better SEO With Broken Link Checker For WordPress

Fix Broken Links & Redirections For Better SEO With Broken Link Checker For WordPress

RECOMMENDED NEWS

My social media became stagnant after I left Mark Angel – Denilson Igwe

My social media became stagnant after I left Mark Angel – Denilson Igwe

12 months ago
President Buhari has authorized the delay of the 2023 census.

President Buhari has authorized the delay of the 2023 census.

2 years ago
Due to an infestation of insects(Cockroaches), prayer was not able to be conducted in Kaaba

Due to an infestation of insects(Cockroaches), prayer was not able to be conducted in Kaaba

2 years ago
Live Report from Supplementary election at Iyiowa Odekpe

Live Report from Supplementary election at Iyiowa Odekpe

2 years ago

FOLLOW US

BROWSE BY CATEGORIES

  • Africa
  • Americas
  • Arts & Culture
  • Asia Pacific
  • Beauty
  • Bitcoin
  • Business
  • Cars
  • Celebrity
  • Cryptocurrency
  • Education
  • Entertainment
  • Entrepreneurship
  • Ethereum coin
  • Europe
  • Fashion
  • Featured
  • Global
  • Health
  • Litecoin
  • local
  • Movies
  • Music
  • News
  • Opinions
  • Others
  • Politics
  • Product
  • Real Estate
  • Relationship
  • Reviews
  • Sports
  • Technology
  • Uncategorized
  • Video

BROWSE BY TOPICS

actress APC arrest arrested atiku baby boy Buhari corruption court day dead death election EPL Government governor killed lagos man media News news & rumors News Update nigeria Nigerian Nigerians NTA off old PA PDP photo photos Police president reacts reveals son speaks State video Videos watch wife

POPULAR NEWS

  • REVEALED: How Police uncover hotel where children are used as sex slaves in Anambra

    REVEALED: How Police uncover hotel where children are used as sex slaves in Anambra

    359 shares
    Share 144 Tweet 90
  • Duties and responsibilities of Acting Central Bank of Nigeria Governor Adebayo Shonubi

    322 shares
    Share 129 Tweet 81
  • Due to an infestation of insects(Cockroaches), prayer was not able to be conducted in Kaaba

    297 shares
    Share 119 Tweet 74
  • President Buhari has authorized the delay of the 2023 census.

    286 shares
    Share 114 Tweet 72
  • How deserted torch uncovered suspected robber in Katsina

    271 shares
    Share 108 Tweet 68
Naijtimes News and Entertainment

Simply the best, for the right news and information at the right time.

Follow us on social media:

Recent News

  • The Central Bank of Nigeria has given Payment Service Providers a 30-day deadline to implement tracking for Point of Sale transactions.
  • Atiku urges the Federal Government to apprehend and prosecute Nigerians who are advocating for the compulsory displacement of the Igbo community from Lagos and other states in the Southwest
  • Chowdeck in partnership with Chicken Republic in Lagos, Ibadan

Calendar

June 2018
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  
« May   Jul »

Tags

actress APC arrest arrested atiku baby boy Buhari corruption court day dead death election EPL Government governor killed lagos man media News news & rumors News Update nigeria Nigerian Nigerians NTA off old PA PDP photo photos Police president reacts reveals son speaks State video Videos watch wife
  • About Us – (Naijtimes.com) Nigeria
  • Advertise with Us
  • Privacy Policy
  • Terms And Conditions

© 2023 Naijtimes News and Entertainment

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Home
  • Arts & Culture
  • Beauty
  • Cryptocurrency
    • Bitcoin
    • Ethereum coin
    • Litecoin
  • Education
  • Entertainment
    • Celebrity
    • Movies
    • Music
    • Video
  • Fashion
  • Featured
  • Global
    • Africa
    • Americas
    • Asia Pacific
    • Europe
  • Inspired
  • Sports
  • News
    • Business
    • Health
    • local
    • Politics
  • Opinions
  • Relationship
  • Reviews
    • Cars
    • Entrepreneurship
    • Real Estate
    • Technology

© 2023 Naijtimes News and Entertainment

Go to mobile version
%d