# traceLevelUp

open fun traceLevelUp(levelUpData: LevelUpData)

Send a game user data to Gamebase server for analyzing the data. This method should be called after level up event.

    public void onLevelUp(int userLevel, long levelUpTime, String channelId, String characterId) {
        LevelUpData levelUpData = new LevelUpData(userLevel);
        levelUpData.levelUpTime = levelUpTime; // Optional
        levelUpData.channelId = channelId; // Optional
        levelUpData.characterId = characterId; // Optional

        Gamebase.Analytics.traceLevelUp(levelUpData);
    }

Content copied to clipboard

#### Since

Added 2.0.0.

#### Parameters

levelUpData

#### See also

LevelUpData