Search code examples
asp.net.netazureazure-application-insightstelemetry

Application Insights - No screen resolution info


We have ASP.Net Web App with AppInsights. There was ability in Azure Portal to view Session charts with groupping by client Operating System, Browser, Screen Resolution etc. But now, with a new version of AppInsights (2.1.0), it seemed that there is no option for gathering any information about screen resolution.

Is there any workaround? Or may be some additional specific configuration options?


Solution

  • I found solution for this case. You can extend calling trackPageView method in your JavaScript code with additional parameters like this:

    appInsights.trackPageView(
            null,
            null,
            {
                "Screen Resolution": screen.width + "x" + screen.height,
            });