Help with GA Filters - IP Addresses
-
I'm having a hard time filtering out both of the IP addresses at our office. One is easy with regular expressions, but the other one does not seem to be working.
Here are the two IP addresses:
2606:a000:4e2b:d500:61d9:9d4e:c539:ea86
174.99.90.148I set up these two custom filters and neither worked for the longer IP address.
2606:a000:4e2b:d500:61d9:9d4e:c539:ea86|174.99.90.148
2606:a000:4e2b:d500:61d9:9d4e:c539:ea86|174.99.90.148Would you please help steer me in the right direction? Thanks as always MOZ friends!
-
Figured it out fully! This is how I needed to write the filter to have both in a regular expression:
174.99.90.148|^2606:a000:4e2b:d500
Thanks again everyone for steering me in the right direction!
-
Not sure why, but it looks like we just have to have separate filters for ipv6 versus ipv4s... works that way, but not combined for whatever reason.
Thanks for the help everyone!
-
I would agree with Dmitrii again on this one. For ipv6 there shouldn't be a need for regex as there are no '.' characters and ':' does not cause a regex function. You might want to consider simply segmenting the ipv4 and ipv6 as two different filters? I know this defeats your purpose of using one filter to catch them all but the problem you are facing may be caused by trying to group ipv6 and ipv4 in the same filter.
Try doing them separately and let us know if that solves the issue of correctly filtering the ipv6 traffic while using the pipes to join multiple ipv6 in one filter.
-
If you are creating filter just for one IPv6, why to you use regular expression at all? Just input it as it is.
-
I'm no longer getting the error, but for whatever reason putting them together is not filtering them out. What it looks like I need to do is create a custom filter and determine how to put the ipv6 in as a regular expression, which I do not understand how to do. Do you know?
-
The solution Dmitrii proposed has also worked for me with no invalid IP address error.
Can you confirm that this is still not working for you and provide a screenshot if possible?
-
It worked for me. I just checked. Are you doing it in custom, rather than predefined?
-
When I put that in it tells me that it's an invalid IP address...
-
It should be
2606:a000:4e2b:d500:61d9:9d4e:c539:ea86|174.99.90.148 -
It does work when I set up a predefined filter blocking IP, but only for that one ipv6 - when trying to add both it isn't working and I'm hoping to only have one filter that blocks multiple IPs... thoughts?
-
Again, is it working if you create a filter just for ipv6?
-
Basically, what I'm trying to do is build the functionality to have all of my IP addresses, both IPv4 and IPv6 in one GA filter. I selected a custom filter to exclude IP addresses that are equal to the below expression, but it's not working for the IPv6. Can someone tell me what's wrong with this setup?
174.99.90.148|2606:a000:4e2b:d500:8519:4fcb:8bf0:78d7
I'm pretty sure the regular expression is incorrect for the IPv6, but I don't know how to do it and cannot figure it out through research.
Thanks as always MOZ friends!
-
Well, try ipv6 by itself first. Make sure it's working, eliminate the variables, you know. If it works by itself, then you can start digging into regular expressions (even though it should be simple ipv6|ipv4 without escapes). Who knows - maybe fault is not in regular expressions, but address is wrong or something.
-
I'd like to put all of these IP addresses in one filter instead of several, which requires a regular expression. These IPs are ours, but I also want to add different partners' IP addresses on their sites. We work with about 50 different websites and I'm hoping to have this as just one of the filters. The regular expression works for the non-IPv6 (thanks!) IP, but the IPv6 one is not filtering.
Make sense? Thanks again for the help!
-
IPv6 is that long IP address.
Simply go to filters in GA, find predefined filter, choose exclude, choose "traffic from IP addresses" and paste your IP, which is 2606:a000:4e2b:d500:61d9:9d4e:c539:ea86.
-
Pardon the lack of knowing, but what is ipv6? How does that filter look in the GA filter? Thanks!
-
Hi there.
You should be able to exclude both IPs without any escaping. What I'd recommend is to create a filter just for ipv6 and see if exclusion works. Let me know if that works.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Help needed - traffic reduced by half for no apparent reason - not sure what to do
My client site, https://www.helpinhearing.co.uk/ - has regularly been showing traffic of between 1000 & 1500 sessions per month. I've just looked at their Analytics for September and the sessions have dropped to just over 600! And not only was there a period of around 11 days from September 19th onwards when there was either zero traffic or 1 or 2 visits, but also from October 4th to today (8th Oct) also no visits at all. This has never happened and we've managed this website for several years now. I cannot fathom out why this may be the case. We haven't changed anything on the site from a technical point of view, just added content and usual blog etc pages. Search Console lists 147 pages as 404 errors but there are no urgent messages or alerts/warnings. I really don't know how to proceed and try and find out what is going on with the site. Can anyone offer suggestions?
Reporting & Analytics | | mfrgolfgti0 -
Help setting up FILTERS for External Payment pages?
Hi all, I own a webshop and believe my Google Analytics is not showing true data. At the moment when a user pays for their basket, they are redirected to an external secure payment page from my PSP, then after they have paid they are redirected back to my website. How is this visitor being counted? As the PSP-URL is a different site I assume this would be treated as an exit? Can I setup FILTERS to INCLUDE this URL so GA doesn't think its an external page or is there a better way? Thanks
Reporting & Analytics | | darrenbooy0 -
Does applying filters in Google Analytics affect Moz Data?
Hello, I'm dealing with spam in google analytics, applying filters (and using segments for historical data) Does applying a filter in GA affect Moz data, future or historical? Is there a way of doing this? Thank you!
Reporting & Analytics | | wearehappymedia0 -
Has GA changed how it calculates bounce rate?
Updated website from Magento backend to Wordpress and since the redeploy, my bounce rate has dropped from 40% to 4%. I did check to see if there was duplicate GA tracking code but only one call. I checked reports under "visitor flow" and one page visits seem inline with the previous bounce rate. Weird. Never experienced this before.
Reporting & Analytics | | Timmmmy0 -
Show item status in GA - LIve vs sold vs unsold
Hi guys, I am working with SEO for an auction site with B2C and C2C. (similar to eBay) All item\products on our page have an unique url. The auction can last from hours to weeks.
Reporting & Analytics | | helgeolaussen
When the item is live, sold or (finished but)unsold it still has the same url.
So when I take a look at SEO traffic to items in Google Analytics, I can't tell if the item was live, sold or unsold at the time the user landed on the page. Which makes it diffucult to analyse the traffic. Is there anyway I can make GA show the status of the item for the time user landed on it? Best regards, Ceran0 -
Does anyone know of a way to do a profile level filter to exclude all traffic if it enters the site via certain landing pages?
Does anyone know of a way to do a profile level filter to exclude all traffic if it enters the site via certain landing pages? The problem I have is that we have several pages that are served to visitors of numerous other domains but are also served to visitors of our site. We end up with inflated Google Analytics numbers because people are viewing these pages from our partners' domains but never actually entering our site. I've made an advanced segment that serves the purpose but I'd really like to filter it at the profile level so the numbers across the board are more accurate without having to apply an advanced segment to every report. The advanced segment excludes visits that hit these pages as landing pages but includes visits where people have come from other pages on our domain. I know that you can do profile filters to exclude visits to pages or directories entirely but is there a way to filter them only if they are a landing pages? Any other creative thoughts? Thanks in advance!
Reporting & Analytics | | ATIseo0 -
Bing Won't Index Site - Help!
For the past few weeks I’ve been trying to figure out why my client's site is not indexed on bing and yahoo search engines. My Google analytics is telling me I’m getting traffic (very little traffic) from Bing almost daily but Bing webmaster tools is telling me I’ve received no traffic and no pages have been indexed into Bing since the beginning of December. At once point I was showing ranking in Bing for only one keyword then all of a sudden none of my pages were being indexed and I now rank for nothing for that website. From Google I’m getting over 1200 visits per month. I have been doing everything I can to possibly find the culprit behind this issue. I feel like the issue could be a redirect problem. In webmaster tools on Bing I’ve used “Fetch as Bingbot” and every time I use it I get a Status of “Redirection limit reached.”. I also checked the CRAWL Information and it’s saying all the URL’s to the site are under 301 redirect. A month or so ago the site was completely revamped and the canonical URL was changed from non www to www. I have tried manually adding pages to be indexed multiple times and Bing will not index any of the sites pages. I have submitted the sitemap to Bing and I am now at a loss. I don’t know what’s going on and why I can’t get the site listed on Bing. Any suggestions would be greatly appreciated. Thanks,
Reporting & Analytics | | VITALBGS
Stephen0 -
Tool to check GA code present on every page?
Is there a tool to check if the Google Analytics code is present on every page of a website? Thanks for your help!
Reporting & Analytics | | gerardoH0