diff --git a/docs/analytics/usage/index.md b/docs/analytics/usage/index.md index 1f95a289..2314bd23 100644 --- a/docs/analytics/usage/index.md +++ b/docs/analytics/usage/index.md @@ -140,5 +140,7 @@ on the `firebase.json` file at the root of your project directory. To re-enable analytics (e.g. once you have the users consent), call the `setAnalyticsCollectionEnabled` method: ```js +import { firebase } from '@react-native-firebase/analytics'; +// ... await firebase.analytics().setAnalyticsCollectionEnabled(true); ```