Blocking internal traffic via IPv6 based view filter in Google Analytics

If your company is very big with hundreds or even thousands of employees and it is not possible for you to force every employee/supplier/stakeholder to use the ‘Google Analytics Opt-out add on’ (which is, by the way, the most efficient way to block internal traffic in Google Analytics) then consider using IP based view filters to block internal traffic in Google Analytics.

But before we move forward with setting up and testing IPv6 based view filter, let us take a quick recap of IP addresses.

Introduction to IPv6 vs IPv4 IP addresses

IPv6 (or Internet protocol version 6) is the protocol designed to replace the current IPv4 (or Internet protocol version 4). IPv6 protocol has been developed so that more users and devices can communicate with each other on the internet.

You can create and assign more IP addresses by using IPv6 than by using IPv4. This is because IPv4 addresses are 32 bits longs. Whereas IPv6 addresses are 128 bits long.

Following is an example of IPv4 based IP address:

Following is an example of IPv6 based IP address:


To determine both the IPv4 and Ipv6 IP addresses of your computer, use this tool:

Note: An Ipv6 address assign to you can change any day any time, just like an IPv4 address.

Blocking internal traffic in Google Analytics via IPv6 based view filters

In order to block internal traffic via IPv6 based filter follow the steps below:

Step-1: Determine your IPv6 based IP address from here: and make a note of it.

Step-2: Navigate to the ‘admin’ section of your main view in Google Analytics and then click on the ‘Filters’ link under the ‘View’ column:

Step-3: Click on the ‘Add Filter’ button and then set up the new filter as shown below:

Step-4: Once you have added your IPv6 address then click on the ‘save’ button.

Note: View filters can take some time to start working. So do not immediately start testing your filter. Wait for 15-20 min before you start testing.

Related Article: How to turn on IP Anonymization in Google Analytics and Google Tag Manager

Register for the FREE TRAINING...

"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."

Here’s what we’re going to cover in this training…

#1 Why digital analytics is the key to online business success.

​#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.

#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.

#4 ​Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.

#5 The number 1 reason why conversion optimization is not working for your business.

#6 How to advertise on any marketing platform for FREE with an unlimited budget.

​#7 How to learn and master digital analytics and conversion optimization in record time.


My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and Beyond
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

Himanshu Sharma

Digital Marketing Consultant and Founder of

Himanshu helps business owners and marketing professionals in generating more sales and ROI by fixing their website tracking issues, helping them understand their true customers' purchase journey and helping them determine the most effective marketing channels for investment.

He has over 12 years of experience in digital analytics and digital marketing.

He was nominated for the Digital Analytics Association's Awards for Excellence. The Digital Analytics Association is a world-renowned not-for-profit association that helps organisations overcome the challenges of data acquisition and application.

He is the author of four best-selling books on analytics and conversion optimization:

error: Alert: Content is protected !!