Log in
Model

SubscriptionStatusProvider

Magento\Analytics\Model\SubscriptionStatusProvider

What it does

This class determines and reports the current status of Magento's Advanced Reporting subscription.

Developers use it to check if analytics is Enabled, Pending (waiting for token), Failed (token retrieval attempts exhausted), or Disabled, which is useful for displaying subscription state in admin panels or troubleshooting analytics integration issues.

Public Methods

  • getStatus()
  • getStatusForEnabledSubscription()
  • getStatusForDisabledSubscription()