// Inform analytics that a user is requesting auth.
final String scopesString = Joiner.on("; ").join(scopes);
analytics.trackEventWithValue(AnalyticsEvent.AUTH_REQUEST, scopesString);
authManager.requestAuth(service, scopes, new AuthCompleteCallback() {
@Override
public void complete(AuthToken token) {
analytics.trackEventWithValue(AnalyticsEvent.AUTH_TOKEN, scopesString);
display.setState(State.PRIVATE, requiredScopes, token.getScopes());
}