How to measure app usage once it is in App stores?

Are there any guidlines/recommendations on how to measure the usage of my app once it is in the Google and Apple stores? I am looking at the Map Tour template specifically. Is there something like Google Analytics configurable, or does that require custom development? If yes, does Esri have a how-to doc.?