When I use Safari to browse to my GoogleAnalyticsTracker-annotated Vaadin Flow 14 application, Flow displays the system error:
Error loading https://www.google-analytics.com/analytics[_debug]
.js
It turns out that Safari’s content tracking blocker blocks both https://www.google-analytics.com/analytics.js
and https://www.google-analytics.com/analytics_debug.js
. The add-on attempts to load them via a call to Flow’s Page::addJavaScript method. When I tell Safari to “Reload Without Content Blockers,” the message does not appear. I went down the Page::addJavaScript rabbit hole, but was unable to see how to suppress the message–if it is even possible.
Is there a way to suppress that message or is it/can it be a dev-mode only message?