Detect the stage of the app (alpha, beta or production)
<p>I'm developing an android app using cordova and I wish to use the three given stages to release it gradually:</p>

<ul>
<li>Alpha for IT tests </li>
<li>Beta for partners </li>
<li>Production for everyone else</li>
</ul>

<p>However, I'm using mixpanel to track some user inputs. 
Mixpanel requires a token to work and I have 2 of them, one for beta and other for production, it is loaded with <code>mixpanel.init("token1")</code> when the app starts.</p>

<p>Currently, I build an apk with no token defined to run in alpha, then I build another one with token1 to run in beta, and later on another apk with token2 to run in prod. It works, but it's a pain.</p>

<p>I wish to use the <code>promote</code> option inside the Google Play Developer Console, so I could build one single apk (automated) that gets promoted to beta/prod when needed and knows which stage it is in, so it uses the token accordingly. </p>

<p>Is it possible? If not, is there a better way to make it work?</p>

<p><strong>TL;DR</strong> Want to know which stage (alpha/beta/prod) the app is running in so it uses a token variable accordingly.</p>