[TIMOB-16617] Only add API usage analytics when building an app for production.