# setGameUserData

open fun setGameUserData(@NonNull userData: GameUserData)

Send a game user data to Gamebase Server for analyzing the data. This method should be called after login.

    public void onLoginSuccess(String channelId, String characterId) {
        int userLevel = 10;
        String channelId, characterId;

        GameUserData gameUserData = new GameUserData(userLevel);
        gameUserData.channelId = channelId; // Optional
        gameUserData.characterId = characterId; // Optional

        Gamebase.Analytics.setGameUserData(gameUserData);
    }

Content copied to clipboard

#### Since

Added 2.0.0.

#### Parameters

userData

Game User Data

#### See also

GameUserData