How would you do this in a Java based app or in some other game engine with support for Firebase Analytics?