google analytics v4

I’m trying to figure out how to implement the analytics, but I got a lot of errors (Track class not found,etc ) any of you have a working sample or do you know where to find it? I’ve checked the official docs but there’s no a working sample, just for admob, auth, etc.