Testing if an app is updated from app store vs. published OTA.

Is there a way to test if a user has uploaded a new app version from the app store as opposed to getting the new app version OTA? It would be annoying to manage this manually so I am just wondering if there is some field representing a version in the app.json or Constants that only increments when a user has downloaded from the app store as opposed to receiving an OTA update.

Thanks!