I have spent several hours reading various articles on Azure Application Insights (AAI). I'm trying to determine how AAI determines what a session is and where I can find a count of unique sessions (first time visitors) vs. returning visitors. Actually, I know where to find a count of unique sessions but I don't see where I can find a count of returning visitors.
Application Insights is a feature of Azure Monitor that provides extensible application performance management (APM) and monitoring for live web apps. Developers and DevOps professionals can use Application Insights to: Automatically detect performance anomalies. Help diagnose issues by using powerful analytics tools.
Azure Application Insights sends telemetry from your web application to the Azure portal, so that you can analyze the performance and usage of your application. The telemetry model is standardized so that it is possible to create platform and language-independent monitoring.
A cohort is a set of users, sessions, events, or operations that have something in common. In Application Insights, cohorts are defined by an analytics query.
Server response time (requests/duration) This metric reflects the time it took for the servers to process incoming requests.
Application Insights defines session as a period of time between the first and the last telemetry item with the same session ID. Session IDs are generated by the various flavors of Application Insights instrumentation code running in the applications. For example, in web apps this is done by the JavaScript code running in a browser and automatically tracking page views.
In particular, the JavaScript code generates a new session ID when the browser loads a page for the first time. This session ID is reused for as long as any telemetry items (page views, events, etc.) are tracked by the app within 30 minutes. If no telemetry is tracked in 30 minutes, it assumes user stopped interacting with the app and the session expires. When telemetry tracking resumes after the timeout, a new session ID will be generated indicating beginning of a new user session.
To analyze the number of returning users, you can chart "Users (Unique)" and "New Users (Unique)" metrics as described here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With