{"id":8533,"date":"2015-02-14T21:30:00","date_gmt":"2015-02-14T21:30:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2015\/02\/14\/learn-about-your-apps-usage-with-application-insights\/"},"modified":"2022-07-28T02:03:59","modified_gmt":"2022-07-28T10:03:59","slug":"learn-about-your-apps-usage-with-application-insights","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/learn-about-your-apps-usage-with-application-insights\/","title":{"rendered":"Learn about your app\u2019s usage with Application Insights"},"content":{"rendered":"<p>We\u2019re excited to introduce our new usage analysis experience for both your <a href=\"http:\/\/azure.microsoft.com\/documentation\/articles\/app-insights-start-monitoring-app-health-usage\/\">web applications<\/a> and <a href=\"http:\/\/azure.microsoft.com\/documentation\/articles\/app-insights-windows-monitor-usage-crashes\/\">device apps<\/a> (Windows Phone and Windows Store applications).<\/p>\n<p>Using <a href=\"http:\/\/azure.microsoft.com\/services\/application-insights\/\">Application Insights<\/a>, it\u2019s now easy to answer common questions about your app adoption, your users\u2019 profile, the way your users experience the app, your top used features, and much more.<\/p>\n<p>Knowing better the users who experience your application, as well as understanding the users\u2019 behavior and needs, lets you improve your app, focus your development work on the most significant user scenarios and meet your business goals.<\/p>\n<h3>**Learn about adoption of your app******<\/h3>\n<p>After you release your app, there are typical questions you\u2019d like to answer. Using Application Insights, you can easily and quickly analyze the following:<\/p>\n<ul>\n<li>Have people already started using my app? If so, how many?<\/li>\n<li>What is the adoption trend over time? For example, was my campaign effective? Was there a rise in adoption after my last blog post?<\/li>\n<li>How many sessions did my users initiate?<\/li>\n<\/ul>\n<p>A quick look at the overview blade answers these questions:<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/5635.image_thumb_2A14B232.png\" alt=\"image\" width=\"623\" height=\"320\" border=\"0\" \/><\/p>\n<p>Looking briefly at these charts, we can see that within the period selected for the chart, the app has had 44 distinct users, who have used it in 127 sessions. That is, at least some of the users came back for more than one session, and therefore may be related as returning users.<\/p>\n<p>The blade above relates to a device app. However, the offering presented in this blog works similarly for web apps as it does for device apps.<\/p>\n<p>Note that the user and session counts, particularly for web apps, may include synthetic traffic, derived for example from Application Insights web tests, Keynote, Gomez or search engines\u2019 bots.<\/p>\n<p>Further the above, one may be interested in tracking the exposure of an app to new users. Click on the users chart for more details on your app users, and you get this:<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/5732.image_thumb_548604B1.png\" alt=\"image\" width=\"625\" height=\"345\" border=\"0\" \/><\/p>\n<p>Using this chart, you can easily learn the number of new users, compared to total, and their trend over the chart period. The new users chart can be a measure in this example of the effectiveness of marketing events:<\/p>\n<ul>\n<li>New users mainly appeared at two points in time: The first (Jan 29<sup>th<\/sup>) was after an email that announced the app release, and the second (Feb 1<sup>st<\/sup>) after announcing a new version.<\/li>\n<li>At other times, most of the users who experienced the app were returning users.<\/li>\n<\/ul>\n<h3>**Learn about your users\u2019 profile******<\/h3>\n<p>You are pleased to know that people are using your app. But now there are deeper questions to ask, which can help you tailor your app to your users\u2019 devices and locations.<\/p>\n<p>To find out where your users\u2019 sessions are coming from, click \u2018Top sessions by country or region\u2019 (the \u2018Top sessions by country or region\u2019 part is presented on the overview blade):<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/5543.image_thumb_2A3BEE38.png\" alt=\"image\" width=\"625\" height=\"240\" border=\"0\" \/><\/p>\n<p>If you\u2019d like to see trends in these figure, you can ask to segment sessions metric by location:<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/7532.image_thumb_06A4E142.png\" alt=\"image\" width=\"625\" height=\"296\" border=\"0\" \/><\/p>\n<p>Knowing the above helps you to locate datacenters, prioritize language support or other localization investments, or assess campaign effectiveness in specific geo-regions.<\/p>\n<p>On the overview blade click \u2018Top devices\u2019, to find out about platforms and devices:<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/7635.image_thumb_17AE3087.png\" alt=\"image\" width=\"625\" height=\"741\" border=\"0\" \/><\/p>\n<p>Currently, the presented device model relates to device manufacturer name. The first model suggests for example a Europe variant of the Lumia 920, whereas the last suggests a Philippines variant of the Lumia 925, both manufactured by Nokia.<\/p>\n<p>Knowing the platforms used and the sessions per each helps you assure your app works well on the most common configurations. Similarly, knowing the devices and their screen resolution helps you adjust your app content and images so that it fits in a screen without scrolling.<\/p>\n<p>Again, you can show these figures as segmented charts of standard or custom dimensions, and there is a variety of other standard <a href=\"http:\/\/azure.microsoft.com\/documentation\/articles\/app-insights-web-track-usage\/\">usage metrics<\/a> you can display (for more details see Application Insights \u2013 Metric Explorer blog posts, <a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2014\/11\/03\/application-insights-metric-explorer-part-1.aspx\">Part 1<\/a>, <a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2014\/12\/15\/application-insights-metric-explorer-me-part-2.aspx\">Part 2<\/a>, [Part 3][12]).<\/p>\n<h3>**Learn what users are doing with your app******<\/h3>\n<p>Now let\u2019s consider the usage of a specific app page or feature. Such data is important for planning development work: prioritizing bug resolution, or determining future investments.<\/p>\n<p>Typical questions which may affect your app development are:<\/p>\n<ul>\n<li>What pages are most visited by my users?<\/li>\n<li>What are the most used features? And the least used?<\/li>\n<li>How successful is a feature release over time?<\/li>\n<li>How many users had difficulties with my app? What are the common error pages?<\/li>\n<\/ul>\n<p>Start from the page views chart at the overview:<br \/>\n<img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/4314.image_thumb_337767D2.png\" alt=\"image\" width=\"625\" height=\"93\" border=\"0\" \/><\/p>\n<p>Click through for more details:<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/0878.image_thumb_5420C228.png\" alt=\"image\" width=\"625\" height=\"691\" border=\"0\" \/><\/p>\n<p>You can instantly see the following insights for the example, which is a weather application:<\/p>\n<ul>\n<li>The most popular pages are the main page, the weather forecast page and the search page (in which users search for a city by using a free text search option).<\/li>\n<li>Surprisingly, in ~16% of the sessions an error page was presented (20 sessions in which an error page was presented out of 127 sessions), reporting no support for a selected city (~11% of the users encounter the error page).<\/li>\n<li>Over time, the session page count (that is, the number of pages per session) decreased. Following a new release, users try lots of pages per session while they get familiar with the app\u2019s capabilities, but over time they check the weather for their relevant cities only.<\/li>\n<\/ul>\n<p>Why do so many users see the error page? A deeper understanding of the error cause and context may help in prioritizing further development work.<\/p>\n<p>Click the <em>ErrorPage<\/em> row to see a list of events in which the error page was shown. You can see below a Diagnostic Search blade, with the relevant filters already populated:<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/7026.image_thumb_4FCEECB6.png\" alt=\"image\" width=\"625\" height=\"631\" border=\"0\" \/><\/p>\n<p>Select the first page view, and under the related items section ask to view \u2018All telemetry for this user session\u2019:<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/4645.image_thumb_44CA0DC1.png\" alt=\"image\" width=\"625\" height=\"678\" border=\"0\" \/><\/p>\n<p>Now you can track the session flow and just the other events in this session:<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/3343.image_thumb_633C00BD.png\" alt=\"image\" width=\"625\" height=\"387\" border=\"0\" \/><\/p>\n<p>In this search screen, we can see that the error page followed a custom event which logs a user request to search for a city. From the custom event details, you can see that the user asked to view the weather in Milan, which is not supported in the current version of the app.<\/p>\n<p>In this example app, we inserted into the code a number of calls to <a href=\"http:\/\/azure.microsoft.com\/documentation\/articles\/app-insights-web-track-usage-custom-events-metrics\/\">TrackEvent()<\/a>. You can create these custom events to log when users use selected features \u2013 which don\u2019t always correspond to page views.<\/p>\n<p><a href=\"http:\/\/azure.microsoft.com\/documentation\/articles\/app-insights-web-track-usage-custom-events-metrics\/\">Custom events<\/a> enable you to track users\u2019 actions and to measure the popularity of a specific feature. To each event you can add custom properties (such as searched city in the example) as a basis for further analysis.<\/p>\n<p>Recalling that a high percentage of the sessions originated in Italy, and in order to find the popularity of a scenario in which a user asks to view the weather in Milan, narrow your filter in Search Explorer to the period in which error pages occurred, and search for custom events which indicate a user ask to view the weather in Milan:<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/4657.image_thumb_70C6BF18.png\" alt=\"image\" width=\"625\" height=\"477\" border=\"0\" \/><\/p>\n<p>You can see that 50 custom events (out of 55 unsupported requests) indicate a user search asking for the weather in Milan.<\/p>\n<p>Understanding the users\u2019 need, the app developer decided to release a new app version with extended support for Milan weather.<\/p>\n<p>A few days later, the app developer is happy to see a significant decrease in error page occurrences. Furthermore, by segmenting the custom events by searched city, the developer identifies a high volume of sessions in which a user views Milan weather:<\/p>\n<p><img decoding=\"async\" style=\"border-width: 0px\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/02\/1447.image_thumb_3AE97C11.png\" alt=\"image\" width=\"625\" height=\"352\" border=\"0\" \/><\/p>\n<p>Hooray! The development work was worthwhile.<\/p>\n<h3>**Know your users to delight them better******<\/h3>\n<p>To understand where your app should go next, it\u2019s important to know what your users are doing with your app. It may not be what you expected!<\/p>\n<p>Application Insights gives you the power to find out easily which are the most useful features, which are the most common issues, and to work out why a feature does or doesn\u2019t work.<\/p>\n<p>More than that, it gives you the ability to systematically assess each feature of your app, incorporating analytics into your development cycle.<\/p>\n<p>Having a complete 360\u00b0 views of your applications&#8217; availability, performance and usage, which can enable fast &amp; powerful insights, helps you plan new improvements, prioritize your backlog, and delight your users.<\/p>\n<p>\u00a0<\/p>\n<p>Learn more about <a href=\"http:\/\/azure.microsoft.com\/documentation\/articles\/app-insights-get-started\/\">Application Insights<\/a>, <a href=\"http:\/\/azure.microsoft.com\/documentation\/articles\/app-insights-web-track-usage\/\">usage monitoring<\/a> and <a href=\"http:\/\/azure.microsoft.com\/documentation\/articles\/app-insights-web-track-usage-custom-events-metrics\/\">tracking custom events<\/a><\/p>\n<p>[12]: http:\/\/blogs.msdn.com\/controlpanel\/blogs\/posteditor.aspx\/Part 3http:\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2015\/02\/07\/metrics-explorer-custom-metrics-and-events.aspx<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re excited to introduce our new usage analysis experience for both your web applications and device apps (Windows Phone and Windows Store applications). Using Application Insights, it\u2019s now easy to answer common questions about your app adoption, your users\u2019 profile, the way your users experience the app, your top used features, and much more. Knowing [&hellip;]<\/p>\n","protected":false},"author":77,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[224,1],"tags":[],"class_list":["post-8533","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-devops"],"acf":[],"blog_post_summary":"<p>We\u2019re excited to introduce our new usage analysis experience for both your web applications and device apps (Windows Phone and Windows Store applications). Using Application Insights, it\u2019s now easy to answer common questions about your app adoption, your users\u2019 profile, the way your users experience the app, your top used features, and much more. Knowing [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/8533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=8533"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/8533\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=8533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=8533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=8533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}