If you ever need to separate your office traffic from the rest, you can do so using two segments in Piwik PRO. One will show visitors from your office based on IP addresses, and the other will cover the remaining traffic.
Note: These segments won’t work if you’re masking IP addresses.
Create a segment for internal traffic
To create a segment for internal traffic, follow these steps:
- Find your office’s IP address. Example:
178.43.222.111
. - Go to Menu > Analytics.
- Navigate to Settings.
- On the left, click Segments.
- Click Add a segment.
- Name your segment.
- In Visibility, choose Author or All users. All users lets you share this segment with your teammates.
- (Optional) Check All sites & apps to make this segment visible across all sites and apps.
- Add your office’s IP address in the segment conditions. Example:
IPv4 address equals 178.43.222.111
. - Click Save.
- Done!
Create a segment for external traffic
To create a segment for external traffic, follow these steps:
- Find your office’s IP address. Example:
178.43.222.111
. - Go to Menu > Analytics.
- Navigate to Settings.
- On the left, click Segments.
- Click Add a segment.
- Name your segment.
- In Visibility, choose Author or All users. All users lets you share this segment with your teammates.
- (Optional) Check All sites & apps to make this segment visible across all sites and apps.
- Add your office’s IP address in the segment conditions. But also set `IPv6 is not empty`. Example:
IPv4 address not equals 178.43.222.111
orIPv6 is not empty
.Note: You need to set `IPv6 is not empty` because otherwise the segment will exclude all IPv6 addresses.
- Click Save.
- Done!
Compare segments in reports
To compare segments in reports, follow these steps:
- Go to Menu > Analytics.
- Navigate to Dashboards, Reports, Custom reports, Goals or Ecommerce.
- Pick the report you want to view.
- Click All visitors at the top.
- Select the segment with internal traffic.
- Click the + icon at the top.
- Select the segment with external traffic.
- All done! You can now compare your traffic sources.