Telemetry for Canvas App using Application Insights

I have been using application insights for many projects. Recently I learned how to use Azure application insights with Canvas App to get more insights. This gives many insights like who visited, browser, page view count and with custom logging.

For this functionality to work, we have to connect Azure application insights to Canvas app and this process is very simple.

  1. Create an Application Insights in Azure

    1. Go to https://portal.azure.com
    2. Click on the portal menu on the left navigation
    3. Click “All services”
    4. And search “Application insights”
    5. Result should display with many other azure services
    6. Select “Application Insights” from the list
      • Tip: Mouse over the “Application Insights” link and another popup window will appear
      • Click Star icon to add to your favorite
      • Click “View” to open the service
    7. Click “New”
    8. Fill the all required information
    9. Click “Review + create”
    10. Wait for few minutes and open the resource once ready
    11. Copy “Instrumentation Key” on the overview page
  2. Connect Canvas App to Application Insights

    1. Go to Canvas App
    2. Click “App” on the screen list
    3. “APP OBJECT” panel will display on right side
    4. Update Instrumentation key that copied from step #1
    5. Save and publish the canvas app 
  3. Run the canvas app

    1. Go to different screen to get more log entry
  4. View Insights in Azure Portal

    1. Open “Application Insights” resource in Azure portal
    2. Click “Events” on the left navigation menu
    3. Click “View More Insights”
    4.  This display many information
      • User Flows
      • Users , Session and Events Count
      • Browser, Operating System and Country
      • Screens that user navigated
    5.  Drilldown each links to view more insights

I hope this helps you. Happy development!!!

One comment

Leave a Reply

Your email address will not be published.