It is possible to segment any analytics report and restrict the data to users who have a particular IP address, or where the IP address is within a given IP range.
For example if you want to restrict your reports to users who have an IP address matching
147.28.*.* then you can create a custom segment and specify the IP range:
- If you use the Segment editor, create a segment where “Visitor IP at least 18.104.22.168” AND “Visitor IP at most 22.214.171.124”
- Or to create a segment excluding all users within an IP range (for example to view your Matomo (Piwik) reports excluding all your colleagues’ requests), you would create a segment where “Visitor IP is less than 126.96.36.199” OR “Visitor IP is more than 188.8.131.52”.
- If you use the API, the segment definition will look as follows:
&segment=visitIp%3E%3D184.108.40.206%3BvisitIp%3C%3D220.127.116.11(this is the URL encoded value for segment
Instead of using segments, you can also create Custom Reports. This lets you analyze and compare the data faster without having to switch between segments and you can get totally new insights into your data.