Reputation: 2132
Is it possible to get user telemetry (like number of unique users) by only configuring application insights to be in ASP.NET Core Startup.cs without adding the telemetry javascript to webpages?
Do requests telemetry enable us to know the number of unique users from both mobile app and webpage or the information about users is limited to applicationinsights javascript?
Upvotes: 1
Views: 417
Reputation: 25106
Actually, you can do this in a limited way without javascript.
You'd be limited to whatever information you collect from the inbound requests, which would include location information (derived from client ip address, which will only be used for geolocation, then thrown away), and whatever limited user/session information the server generates for you, and asp.net (including core) does do some of that already.
Application Insights uses the full incoming address (if there is one) to do geolocation, and then (as of ~Feb 2018) throws away the ip address.
Upvotes: 2
Reputation: 22836
Well, binary answer is No.
As client side telemetry need to be captured in client browser - JS option is the only choice. Requests & other telemetry can give you server side data but user specific data still need ai.js
Otherwise you can have audit on your own in addition to your authentication/authorization implementation.
Update: John & James pointed out some useful info & links to achieve this from server side too.
Upvotes: 1