How to detect the track/channel from within the app?

I have a use case where depending on the track/channel where the user is, show some message.

I can already determine whether the app is the snap variant or not by checking for the env variable process.env.SNAP

How can I also check for the track/channel?