KPI's in Azure web app service

azure mv 0 Reputation points
2023-11-08T17:07:23.97+00:00

Hi,
I have one react app which contains multiple pages that pages contains different information. To host this react app Created azure web app and it's working fine. Now this app available to users.
so my question is i want to know who accessed the app and which user accessed which page with in that app and how many times user accessing the page. Is this possible to get this information with in web app ? If yes, where can i get this?

I tried the logs in web app but it showing no results found . Can any one help me please.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,024 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,005 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 18,646 Reputation points
    2023-11-13T22:14:22.2366667+00:00

    Hi @azure mv Yes, it is possible to track user activity within your Azure web app.

    You can use Application Insights, a feature of Azure Monitor, to analyze user, session, and event data. Here’s how it works:

    • Users tool: Counts users using anonymous IDs stored in browser cookies
    • Sessions tool: Tracks sessions of user activity that include certain pages and features of your app
    • Events tool: Counts page views when a browser loads a page from your app, and custom events represent occurrences of something happening in your app

    You can also explore different groups of users by adjusting the query options at the top of the Users tool

    You can add the App Insights SDK to your React app. This will let you track page views, user flows, exceptions etc. You can then analyze the telemetry in the Azure Portal.

    Remember, you need to instrument your pages to generate the necessary telemetry. If you’re not seeing any data in the Users, Sessions, or Events panes in the Application Insights portal, you may need to check your setup.

    Please note that this will give you aggregated data. If you need to track individual users, you might need to implement authenticated IDs.

    Hope that helps.

    -Grace


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.