Client-only - make sure to wrap universal code in if (process.client) {}.

Initializes Firebase Analytics and makes it available via $ and $

  • Type: Boolean or Object
  • Default: false
analytics: {
  collectionEnabled: true // default


Allows to disable analytics collection. Usefull to disable analytics in development mode or before fullfillment of legal obligation.

Can be enabled back via $fireAnalytics.setAnalyticsCollectionEnabled(true).

Edit this page on GitHub Updated at Tue, Mar 23, 2021