Stratergies to collect analytics and error in windows 8 metro app <p>I have build a metro app using javascript, i have written around 6000 lines of codes.</p> <p>I am ooking for ways to collect 2 things</p> <ol> <li>What users is doing, user action analytics</li> <li>Error that users may be facing, collecting a log file or some other strategy.</li> </ol> <p>What are the available options and what are the available strategies to do that.</p>