--- title: "Pop-ups are showing to incorrect Cohort of users" slug: "pop-ups-showing-to-incorrect-cohort-of-users" description: "Resolve Pop-ups showing to users outside the targeted countries by switching your Cohort time filter from Anytime to Most recently." tags: ["Cohorts", "visibility rules", "Pop-ups", "Troubleshooting"] updated: 2025-09-12T06:27:07Z published: 2025-09-12T06:27:07Z canonical: "support.whatfix.com/pop-ups-showing-to-incorrect-cohort-of-users" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.whatfix.com/llms.txt > Use this file to discover all available pages before exploring further. # Pop-ups are showing to incorrect Cohort of users ## Issue You've configured a Pop-up to show to a specific group of users in certain countries, such as Canada and the United States of America (USA), using [Cohorts as Visibility Rules](/product-analytics/docs/add-cohorts-as-visibility-rules). However, users in other countries are also seeing the Pop-up. ## Probable Cause The issue occurs due to the time filter set in the Cohort. You might have used the **Anytime** filter while creating the Cohort. ![cohort_country_condition.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_country_condition.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=J3R%2BIT%2BBsdKfh3q15P9GA9SXp3LdHb61%2BgnicoihivU%3D) The **Anytime** filter includes any user who has logged in from Canada or the USA within the last 30 days, regardless of their current location. A user could be in India today but still see the Pop-up as long as their country was Canada at some point within the last 30 days. ## Suggested Solution To ensure that the Pop-up is displayed only to users currently in the targeted countries, update the Cohort's time filter from **Anytime** to **Most recently**. Updating the filter ensures that users who have changed their country within the last 7 or 30 days are still able to view the Pop-up based on their current location. Use the following steps to create a Cohort with the **Most recently** filter: 1. On the [Whatfix Analytics dashboard](/product-analytics/docs/how-can-i-access-the-product-analytics-dashboard), click **Audience**. ![ia_left%20nav_audience](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/ia_left%20nav_audience.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=H7Pre0WMT97rYj0UuGcfr%2BoRhk4L%2Fea9z%2BRHDPMyy78%3D) 2. Click **Cohorts**. ![Click_coharts](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/Click_coharts.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=%2BCw2d7arURZtHvfoXWUXgzmzTE2C%2BSMYig%2B2ld%2FNz7o%3D) 1. Click **Create cohort**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/analytics_create_cohort.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=uC9T1Ts9BXpHTpO6DhZaWHKF7EJ7L2udmOWzHNulljs%3D) 2. Click the **Give your cohort a name** textbox and enter a name for your Cohort. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_enter_a_name.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=3IVVslto%2FbgKVsCq2p8rTj1hLrKi6ZUjseZCql%2FvjBk%3D) 3. Click **Add rule**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/2022-09-27_12-54-01.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=g5q8BS9%2BmTTJy4HBUI6UJdfW3N46VpS477B0j0JdPsI%3D) 4. Select **Has attribute** from the dropdown menu. The rule groups users based on attributes, such as country, city, browser, and OS. ![cohort_builder_has_attribute.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_builder_has_attribute.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=YWJHK3PGL9gHNrae27M6h8azmNJ2V7t%2FiJRESoCtJhM%3D) 5. Select the user attribute that you want to track, such as **Country**. ![cohort_builder_country.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_builder_country.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=k881g%2FXtBSwuWMbnngxUU6POT6fQB3PcpPrQe6OhBLE%3D) 6. Select the comparison operator, such as **Equals**. ![cohort_builder_comparison_operator.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_builder_comparison_operator.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=44k2UA1xeD%2B%2FyPeuGG%2FZKRIYcl1R9yUci6hzF7asCrQ%3D) 7. Select the value of the attribute (for example, Canada) and then click **Apply**. ![cohort_builder_select_value_of_attribute.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_builder_select_value_of_attribute.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=zQ2CvT%2FgAMV3Iq7UQG1l74TepJMVwXXBp3sevfZlF8A%3D) 8. Select **Most recently**. ![cohort_builder_select_most_recently.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_builder_select_most_recently.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=hHRZDjoqe892ZFVyHSM%2BW66aaql7me0i4nzuJl9B2LU%3D) 9. Select the required timeframe. For example, during the last 7 or 30 days. ![cohort_builder_select_timewindow.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_builder_select_timewindow.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=3HN05YTLFN%2BQIAJVawwLi6c8o2a5D8aPA4uQfbnhz9E%3D) > [!NOTE] > Info: > > Here’s how you can create the Cohort. > > ![cohort_builder_most_recently_rule.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_builder_most_recently_rule.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=CS34qIMfS4OBLe6fdgTlW8iCng60Z14kd5cPdNbYQj4%3D) 10. Click **Refresh** to view the number of users included in the Cohort. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_refresh.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=gMFU3pRSBDa4hHtxuvBQmB3gGFyBZVpOkMOsdBF4cuc%3D) 11. Click **Save**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/cohort_click_save.png?sv=2026-02-06&spr=https&st=2026-12-01T03%3A50%3A50Z&se=2026-12-01T04%3A50%3A50Z&sr=b&sp=r&sig=5KHcsVB3VDJuvTDJIAAncPthLYTCzOHGINVeW3OOWLI%3D) > [!WARNING] > Note: > > - Add the Cohort to your Pop-up Visibility Rules. For more information, see [Add Cohorts as Visibility Rules](/product-analytics/docs/add-cohorts-as-visibility-rules). > - [Preview the Pop-up](/studio/docs/preview-pop-ups) and [push it to Production](/studio/docs/pushing-whatfix-content-to-production). > - If the issue persists, contact [support@whatfix.com](mailto:support@whatfix.com?subject=Pop-ups%20showing%20to%20incorrect%20Cohort%20of%20users&body=Hi%20team%2C%0A%0APop-ups%20are%20appearing%20for%20the%20incorrect%20Cohort%20of%20users.%20Please%20help.%0AENT%20ID%3A%0A). ## Related - [Create a Cohort](/create-a-cohort.md) - [How often is Cohort data refreshed when added to Visibility Rules?](/how-often-is-cohorts-data-refreshed.md) - [Unable to see the Users option in Visibility Rules](/unable-to-add-cohorts-as-visibility-rules-in-widgets.md)