Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/how-to-prevent-a-beacon-from-appearing-in-wrong-location

# How to prevent a Beacon from appearing in incorrect locations?

Prevent a Beacon from appearing in incorrect locations by configuring its Visibility Rules accurately.

- Specify the rules using attributes such as **Page tag** and **URL Path**.
- Use the conditions **Exists** or **Contains** under New Visibility Rules.
- Avoid configuring generic rules or conditions, such as using only the domain part of the **URL**, as this can lead to inaccuracies.
- Refine the visibility by using **Not Equals** and **Not Contains** conditions in conjunction with other conditions.
- Use CSS selectors for the Beacon to appear correctly on the selected element. For more information, see [How to find a CSS selector of an element using Whatfix](/web/how-to-find-the-css-selector-of-an-element-using-whatfix-editor).

For more information, see [New Visibility Rules](/web/understand-advanced-visibility-rules-for-content).

## Related

- [Visibility Rules Best Practices](/web/visibility-rules-best-practices)
- [Troubleshoot Beacons using Diagnostics](/web/troubleshoot-beacons-using-whatfix-diagnostics)
- [Beacon does not appear correctly](/web/beacon-does-not-appear-correctly)
