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
-
How to filter blog pageviews using segments with regex
I must be overcomplicating this. I have a website with a blog structure that includes year subfolders, so: website.com/2019/blog-title, website.com/2018/blog-title, website.com/2017/blog-title, etc. I want to create a segment that I can apply in Site Content > All Pages to get quick stats for all blogs, regardless of year. (Pageviews, time on site, etc.) Unfortunately, Content Drilldown doesn't work well here as it is grouping by each year. I have tried setting up a segment using regex, but am getting a mixture of all pages, not just blog pages. I have set up the segment the following way: Advanced > Conditions > Page, Matches Regex, /2019/(.*?)/ Advanced > Conditions > Page, Matches Regex, /2018/(.*?)/ Advanced > Conditions > Page, Matches Regex, /2017/(.*?)/ Am I going about this all wrong? Is my regex wrong? Any advice is appreciated! Side note: glaringly obvious that now is the time to clean up my URLs. But I'd still love to see the data in its current URL state. Thank you!
Reporting & Analytics | | SoleGraphics0 -
Need help Taking my Site to the Next Level
Any, and I mean ANY suggestions would be Great and Welcome, Good and Bad. Have a Good site, with what I believe good content, and just stuck at the same level for over 6 months. Please and Thank you for taking a few minute of time out of your day on this. Joe https://www.surecretedesign.com/
Reporting & Analytics | | surecreteproucts0 -
Access to GA revoked
Hi, If the company gives me access to Google Analytics for two days, will I still be able to see the data after day three? I am interested in past data not the future or current.
Reporting & Analytics | | aliciaporrata10090 -
Is there an efficient way to block/filter referral spam in Google Analytics for a large network of websites?
Hello, everyone - I'm looking for guidance on how to block or filter referral spam in Google Analytics. But I'm needing to block for an entire network of Wordpress websites. We have two networks which total over 2,500 websites. We are currently blocking sites we find out about via htaccess. This works, but only after we see we are getting hit with the spam. Updating 2,500+ Google Analytics accounts with filtering is not an ideal option due to the time factor and the fact that new bots coming out almost daily. We can continue the htaccess method, but does anyone have any other ideas for blocking referral spam for a large network of sites? These are the other ideas we have. 1. Blocking all traffic from Russia and China based up subnets. We know many will still get through, but it should block 50% of it, we hope.
Reporting & Analytics | | copyjack
2. Moving sites to Google Tag manager. Â This is a huge tasks but we have seen that sites using Tag Manager are not effected, at least for now. Other ideas are appreciated!0 -
How do I connect GA to SEOMOZ if I do not have access to a GA account ?
I am not the owner of the account it is a clients and I need to connect my SEOMOZ to their GA account.. any ideas? Thanks in advance 🙂
Reporting & Analytics | | Andisue1 -
My GA code is on my site but Google Analytics isn't being pulled into SEOMoz...why?
The CEO wants me to present an SEO plan next week for three of our sites; however, I got this message when I went to campaign overview tab: "It appears there's a problem with our connection to your Google Analytics account. Please go to your Settings page to update your connection." I double-checked the GA code and it's the same on both our site and in SEOMoz...what gives? I clicked on Choose Your GA Profile->Set GA Account and Profile then got this warning: "Are you sure you want to change your Google Analytics connection?  Changing your connection will reset our cache of your historical GA traffic data." I need this data pronto so I can set strategy for three sites; any help would be greatly appreciated! Darrell
Reporting & Analytics | | AdviceElle0 -
Where should I insert the code when I track an event on GA?
hi mozzers, I am trying to setup my first event to count the numbers of downloads of an infographic(pdf file) we just created on GA and after some research I figured that I should add this piece of code (below) but where exactly? <colgroup><col width="386"></colgroup>
Reporting & Analytics | | Ideas-Money-Art
| _gaq.push(['_trackevent', 'PDF', 'Download', 'name of file']); | Should I put it just in between _gaq.push(['_setDomainName', 'coit.com']); and _gaq.push(['_trackPageview']); ? Please provide details because I ve never done this before Thanks 🙂0 -
GA Subdomain Setup
Hi Mozzers, Can someone show me how to add a subdomain profile (sub.example.com) under the master profile (www.example.com) on Google Analytics. I am not sure on how to set it up. Thanks
Reporting & Analytics | | Ideas-Money-Art0