Impact analysis with Application Insights

Impact analyzes how load times and other properties influence conversion rates for various parts of your app. To put it more precisely, it discovers how any dimension of a page view, custom event, or request affects the usage of a different page view or custom event.

Still not sure what Impact does?

One way to think of Impact is as the ultimate tool for settling arguments with someone on your team about how slowness in some aspect of your site is affecting whether users stick around. Users might tolerate some slowness, but Impact gives you insight into how best to balance optimization and performance to maximize user conversion.

Analyzing performance is only a subset of Impact's capabilities. Impact supports custom events and dimensions, so you can easily answer questions like, How does user browser choice correlate with different rates of conversion?

Note

Your Application Insights resource must contain page views or custom events to use the Impact analysis workbook. Learn how to set up your app to collect page views automatically with the Application Insights JavaScript SDK. Also, because you're analyzing correlation, sample size matters.

Impact analysis workbook

To use the Impact analysis workbook, in your Application Insights resources go to Usage > More and select User Impact Analysis Workbook. Or on the Workbooks tab, select Public Templates. Then under Usage, select User Impact Analysis.

Screenshot that shows the Workbooks Gallery on public templates.

Use the workbook

Screenshot that shows where to choose an initial page view, custom event, or request.

  1. From the Selected event dropdown list, select an event.
  2. From the analyze how its dropdown list, select a metric.
  3. From the Impacting event dropdown list, select an event.
  4. To add a filter, use the Add selected event filters tab or the Add impacting event filters tab.

Is page load time affecting how many people convert on my page?

To begin answering questions with the Impact workbook, choose an initial page view, custom event, or request.

  1. From the Selected event dropdown list, select an event.

  2. Leave the analyze how its dropdown list on the default selection of Duration. (In this context, Duration is an alias for Page Load Time.)

  3. From the Impacting event dropdown list, select a custom event. This event should correspond to a UI element on the page view you selected in step 1.

    Screenshot that shows an example with the selected event as Home Page analyzed by duration.

What if I'm tracking page views or load times in custom ways?

Impact supports both standard and custom properties and measurements. Use whatever you want. Instead of duration, use filters on the primary and secondary events to get more specific.

Do users from different countries or regions convert at different rates?

  1. From the Selected event dropdown list, select an event.

  2. From the analyze how its dropdown list, select Country or region.

  3. From the Impacting event dropdown list, select a custom event that corresponds to a UI element on the page view you chose in step 1.

    Screenshot that shows an example with the selected event as GET analyzed by country and region.

How does the Impact analysis workbook calculate these conversion rates?

Under the hood, the Impact analysis workbook relies on the Pearson correlation coefficient. Results are computed between -1 and 1. The coefficient -1 represents a negative linear correlation and 1 represents a positive linear correlation.

The basic breakdown of how Impact analysis works is listed here:

  • Let A = the main page view, custom event, or request you select in the Selected event dropdown list.
  • Let B = the secondary page view or custom event you select in the impacts the usage of dropdown list.

Impact looks at a sample of all the sessions from users in the selected time range. For each session, it looks for each occurrence of A.

Sessions are then broken into two different kinds of subsessions based on one of two conditions:

  • A converted subsession consists of a session ending with a B event and encompasses all A events that occur prior to B.
  • An unconverted subsession occurs when all As occur without a terminal B.

How Impact is ultimately calculated varies based on whether we're analyzing by metric or by dimension. For metrics, all As in a subsession are averaged. For dimensions, the value of each A contributes 1/N to the value assigned to B, where N is the number of As in the subsession.

Next steps