# Exclude countries

**URL:** <https://community.piwik.pro/t/exclude-countries/3081>\
**Category:** Data collection and tags\
**Created:** [October 23, 2023, 7:42am UTC](https://community.piwik.pro/t/exclude-countries/3081 "2023-10-23T07:42:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan\_Geers](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/daan_geers/32/2479_2.png) [@Daan\_Geers](https://community.piwik.pro/u/Daan_Geers)\
**Post date:** [October 23, 2023, 7:42am UTC](https://community.piwik.pro/t/exclude-countries/3081/1 "2023-10-23T07:42:18Z")

</div>

Hello,

I would like to know how to exclude countries. For example, I want to exclude countries like the United States and Canada. I can only find information on how to exclude based on IP address.

Thanks!  
Daan

---

<div class="post-metadata">

**Author:** ![asinior](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/asinior/32/1905_2.png) [@asinior](https://community.piwik.pro/u/asinior)\
**Post date:** [October 23, 2023, 10:27am UTC](https://community.piwik.pro/t/exclude-countries/3081/2 "2023-10-23T10:27:44Z")

</div>

Hello,

There is no default option that would allow you to do that. The only option here is to exclude the traffic based on IP addresses.

What you could also do here is to filter out the data in the Analytics module by applying a condition that would exclude data from certain countries from appearing in your custom reports or by creating a segment that would exclude the data from the US and Canada traffic.  
For example:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/a/a6013631261aee14c2c7212d5a8a11c28131a881.png)

Here is an article on how to create segments:

> **[Group visitors into segments | Piwik PRO help center](https://help.piwik.pro/support/reports/segments/)**
>
> Segments let you divide your visitors into smaller groups and analyze them separately in reports and on dashboards. By breaking down your data, you can gain insights that would be difficult to discover when looking at all your data together. For...

---

<div class="post-metadata">

**Author:** ![Daan\_Geers](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/daan_geers/32/2479_2.png) [@Daan\_Geers](https://community.piwik.pro/u/Daan_Geers)\
**Post date:** [October 23, 2023, 12:25pm UTC](https://community.piwik.pro/t/exclude-countries/3081/3 "2023-10-23T12:25:04Z")

</div>

Thanks. This helped a lot.
