Google Analytics for Firebase
予約イベント
https://rnfirebase.io/docs/v5.x.x/analytics/reserved-events
javascript const reserved = [ 'app_clear_data', 'app_uninstall', 'app_update', 'error', 'first_open', 'first_visit', 'first_open_time', 'first_visit_time', 'in_app_purchase', 'notification_dismiss', 'notification_foreground', 'notification_open', 'notification_receive', 'os_update', 'session_start', 'screen_view', 'user_engagement', 'ad_impression', 'ad_click', 'ad_query', 'ad_exposure', 'adunit_exposure', 'ad_activeiew', ];
Funnel設定
Reference
logEvent(event, params)
Log a custom event with optional params.
Note: up to 100 characters is the maximum character length supported for event parameters.
- event(string):
- params(object):
setAnalyticsCollectionEnabled(enabled)
If true, allows the device to collect analytical data and send it to Firebase.
- enabled: false
setCurrentScreen(screenName, screenClassOverride)
- screenName: 'PoiScreen'
- screenClassOverride: -
setMinimumSessionDuration(miliseconds)
Sets the minimum engagement time required before starting a session. The default value is 10000 (10 seconds).
- miliseconds: 5000
setSessionTimeoutDuration(miliseconds)
Sets the duration of inactivity that terminates the current session. The default value is 1800000 (30 minutes).
- miliseconds: 1800000
setUserId(id)
- id: RECID
setUserProperty(name, value)
ユーザー登録ができたら追加
setUserProperties(fieldMapping)
ユーザー登録ができたら追加