Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sessions in Azure Application Insights

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.

like image 983
Randy Minder Avatar asked May 28 '15 20:05

Randy Minder


People also ask

How does Azure application Insights work?

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.

What is telemetry in Azure application Insights?

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.

What is cohort in application Insights?

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.

Which metric shows the number of request that are processed per time unit seconds minutes hours by the server?

Server response time (requests/duration) This metric reflects the time it took for the servers to process incoming requests.


1 Answers

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.

like image 184
Oleg Sych Avatar answered Sep 30 '22 20:09

Oleg Sych