hasAnalyticsFeatures static method

bool hasAnalyticsFeatures()

Returns whether the account-level analytics opt-out is enabled: the "Share usage data" switch on the Email & privacy page, and applying the account's choice through the host's applyAnalyticsOptOut hook, which MagicStarterServiceProvider.boot() requires while this is on.

Implementation

static bool hasAnalyticsFeatures() {
  return Config.get<bool>(
        'magic_starter.features.analytics',
        _defaultAnalytics,
      ) ??
      _defaultAnalytics;
}