0

I usually use regular expressions a lot in GA filters, but I'm also usually adding "custom" filters.

The IP address predefined filter accepts values per the screenshot below IP address predefined filter

Usually I'd expect this to have an option that says "matches pattern", but I'm wondering if "contains" might do it.

The official docs from Google suggest making multiple rules for multiple IPs, but when you have staff spread across many different offices this becomes very time consuming.

The official docs do say that the * character works as a wildcard with IPv4 addresses. I'm wondering if that's the case due to being regex enabled (i.e., .*) or if it's just a regular wildcard.

1

You can use regular expressions for IP filtering, but you need to create a custom type rule, instead of predefined. Key settings for this: enter image description here

You can even find tools to create the RegEx based on the provided IP range, e.g. this one. (No affiliation, just recommendation.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.