Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brave Ad-Blocker Blocks Default Umami Analytics Script URL – Need Custom Host Support #184

Open
eierina opened this issue Oct 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@eierina
Copy link
Contributor

eierina commented Oct 29, 2024

The default Umami script URL (https://analytics.umami.is/script.js, https://cloud.umami.is/script.js) is blocked by browsers with built-in ad-blockers, such as Brave. This prevents the Umami analytics script from loading and tracking analytics data.

To Reproduce

Steps to reproduce the behavior:

  1. Go to a site using the Pliny Umami component with the default src set to https://cloud.umami.is/script.js.
  2. Open the site in the Brave browser with the integrated ad-blocker enabled.
  3. Inspect the console/network tab to observe that the script fails to load.

Expected Behavior

The Umami script should load successfully, and analytics should be tracked even when using browsers with ad-blockers enabled.

System Info (if dev / build issue):

  • OS: macOS
  • Node version: v18.20.4
  • Npm version: 10.9.0
  • Yarn version: 3.6.1

Browser Info (Brave:

  • Device: Desktop
  • Browser: Brave (with integrated ad-blocker enabled which comes as default)
  • Version: 1.70.123

Additional Context

To bypass ad-blockers, hosting the Umami script on a custom domain is a solution. However, specifying a custom data-host-url attribute is necessary for directing analytics data to the correct endpoint when the script is hosted on a different server. Additionally, the Umami component would benefit from handling other data-* attributes dynamically to support current and future Umami script configurations.

@eierina eierina added the bug Something isn't working label Oct 29, 2024
@eierina
Copy link
Contributor Author

eierina commented Oct 29, 2024

will submit PR in short

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant