setUserId method

  1. @override
void setUserId(
  1. String value
)
override

Google Analytics has a setUserID call, which allows you to store a user ID for the individual using your app. This call is optional, and is generally used by organizations that want to use Analytics in conjunction with BigQuery to associate analytics data for the same user across multiple apps, multiple devices, or multiple analytics providers. See https://firebase.google.com/docs/analytics/userid

Implementation

@override
void setUserId(String value)
{
    logger.logInfo((_isEnabled ? 'GoogleAnalytics' : 'Disabled-GoogleAnalytics') + ': setUserId: $value');

    if (_isEnabled)
        _firebaseAnalytics.setUserId(value);
}