Did not record custom event playerStartedGame because player has not opted in.

Generally, I am sad that the documentation on the new Analytics is so sparse. It is quite a lot about the dashboard, but hardly anythign on what you should do in your Unity project!
I mean, there MUST be more to custom events than just this: Record Custom Events

So now I got this error:
Did not record custom event playerStartedGame because player has not opted in.

And obviously the user has to give consent SOMEHOW, but I can’t find anywhere how you should get that consent. So I flag this as a bug for now.

If you are using Analytics 5.0, read here: Migrating to version 5.0.0