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:
Go to a site using the Pliny Umami component with the default src set to https://cloud.umami.is/script.js.
Open the site in the Brave browser with the integrated ad-blocker enabled.
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.
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:
Umami
component with the defaultsrc
set tohttps://cloud.umami.is/script.js
.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):
Browser Info (Brave:
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 otherdata-*
attributes dynamically to support current and future Umami script configurations.