mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[v6] Misc doc fixes (#2515)
* Typo
* Admob doc link fixes
* Removed Brittish slang 🙄
* Wording, typos
* Extra admob examples
* Analytics doc changes
* User properties details
* Auth stuff
* More auth changes
This commit is contained in:
committed by
Mike Diarmid
parent
f34979d5c2
commit
b39aa3e680
@@ -18,7 +18,7 @@ yarn add @react-native-firebase/analytics
|
||||
## Module usage
|
||||
|
||||
The Analytics package will automatically start tracking events such as when users clear app data, dismiss notifications and more.
|
||||
To view the full list of automatic events, see <Anchor version group href="/reserved-events">Reserved Events</Anchor>.
|
||||
To view the full list of automatic events, see [this page](https://support.google.com/firebase/answer/6317485) of the official Firebase documentation.
|
||||
|
||||
The package also provides a JavaScript API to allow for logging custom events and metrics throughout your application.
|
||||
|
||||
@@ -52,7 +52,7 @@ async function onProductView() {
|
||||
|
||||
### Attaching user data
|
||||
|
||||
User data can be attached to analytical events via the `setUser*` methods:
|
||||
User data can be attached to analytical events via the [***`setUserId`](reference/module#setUserId), [***`setUserProperties`](reference/module#setUserProperties) and [***`setUserProperty`](reference/module#setUserProperty) methods. Each Firebase project can have up to 25 uniquely named (case-sensitive) user properties.
|
||||
|
||||
```js
|
||||
import analytics from '@react-native-firebase/analytics';
|
||||
@@ -65,9 +65,11 @@ async function onSignIn(user) {
|
||||
}
|
||||
```
|
||||
|
||||
> When you set user properties, be sure to never include personally identifiable information such as names, social security numbers, or email addresses, even in hashed form.
|
||||
|
||||
### Tracking screen names
|
||||
|
||||
Similar to Analytics on the web, it's important to understand the user journey within your application, for example
|
||||
Similar to Analytics on the web, it's important to understand the user's journey within your application, for example
|
||||
tracking drop off points during a e-commerce transaction flow. The Analytics package provides a method called
|
||||
`setCurrentScreen` to help track this.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user