diff --git a/src/Analytics.js b/src/Analytics.js index 09689fff15..a95e6ee0e9 100644 --- a/src/Analytics.js +++ b/src/Analytics.js @@ -197,6 +197,8 @@ class Analytics { if (this.disabled) return; const config = SdkConfig.get(); + if (!config.piwik) return; + const whitelistedHSUrls = config.piwik.whitelistedHSUrls || DEFAULTS.piwik.whitelistedHSUrls; const whitelistedISUrls = config.piwik.whitelistedISUrls || DEFAULTS.piwik.whitelistedISUrls;