Use Application Insights to find out what users are doing with your app
Application Insights is in preview.
Find out how often users run your app, what environments they run it in, and how many users there are. Insert a few lines of code to find out what features they use, how long they take over different tasks, what mistakes they make, and how often events occur.
Are you using the new Azure version of Application Insights?
How do I know? If you created your project with Visual Studio 2013 Update 3, the telemetry data should be sent to Microsoft Azure. In that case, go here to get started.
This new Microsoft Azure version doesn't have all the features yet. If you still want to use the older version, from the Visual Studio main menu choose Tools->Extensions and Updates and uninstall Application Insights Tools version 2.*. Then install version 1.3.
Add Application Insights to your project
You can add Application Insights to web apps and web services, Windows Store 8.1 apps and Windows Phone 8.0 apps. If you're writing in C++ or you use Visual Studio 2012, follow these more detailed instructions.
- Install Application Insights Tools version 1.3 in Visual Studio 2013 (unless you've done that already).
Everyone on your team should install the tools.
Add Application Insights to your app.
If you've already created the app:
Or if you're creating a new app:
[Windows Store and Phone apps] Open Configuration Manager.
Set your project's build platform to a single platform (not Any CPU).
Build and run your app in debug mode (F5) and use it, to generate some data.
View your data
- Open Application Insights.
Your web browser opens on a Dashboard containing a tile like this:
You should see events appearing within a few seconds. (If not, see Troubleshooting.)
If you want to see more details of the events, click the tile to open the Streaming page:
The Streaming tile and page are only used while your app is in development. After you build your app in Release mode, you won't see data here.
- Data will appear in the USAGE pages after 5-15 minutes. Make sure to select your app, to see the right data.
If you only see configuration instructions, wait a few minutes more and refresh the page.
- Deploy your app.
As people use your app over the next few hours and days, you'll see charts building up under the Usage tab.
Q: I'm not seeing any data. What's happening?
A: See Troubleshooting.
Q: How do I find out more about what my users are doing?
A: Insert lines of code to log events and time user actions. Read the details here:
- Log events at the server in an ASP.NET web application
- Log events in a web page
- Log events in a Windows Phone app
- Log events in a Windows Store app
Q: What are the settings in ApplicationInsights.config?
A: See Configuring Application Insights.
Q: Can I use these event logs to help diagnose problems?
Q: What browsers can I use to look at the Application Insights portal?
A: Internet Explorer 10 or later, Safari 4 or later, and the latest two releases of Chrome and Firefox.