I am new to Microsoft Azure Application Insights and need some help on getting user information (Login ID, number of times user logged into application, etc).
I went through another similar stack overflow post Getting User Information in App Insights , but it did not helped me.
I have already setup Application Insights and getting the default data presented by Azure itself.
Request your help on the same.
Thanks in advance.
We did something similar to this using custom properties in our platform - this will be available for grouping in Azure portal as well.
Achievable by TrackPageViews in client side using AI script. With a small tweak:
appInsights.trackPageView("module_name", "serverUrl", {User: "UserName", DomainName: "Alias" });
Reference-Blog post written here: https://learn.microsoft.com/en-us/azure/application-insights/app-insights-sample-mscrm
for something like "number times user logged into application" could be as simple as
union customEvents, pageViews
| where timestamp > ago(14d)
| summarize numSessions = dcount(session_Id) by user_Id
| top 100 by numSessions
(or in english, "in the last 14 days, show me top 100 users by how many sessions they have in events and page views")
depending on what telemetry you're sending, you'd adjust what tables you are using, what date/time ranges you want, if you want specific events or pages by names, etc.
or, you could use the Usage features in the portal, which can show you this kind of information.
Related
Use case: Categorizing page views in an Azure web app for analytics reporting
Using Azure Application Insights, I can see a list of pages in an Azure web app and its number of views in the past X days.
The web app is a documentation website. I would like to categorize each page with a tag like install-info or api-doc or intro-material, etc. The goal is that I can easily see information like "X number of page views were around install information" or "API pages received 25% of traffic," etc.
Currently I am exporting a table of each page and its number of views. Then I manually categorize each page in Excel. There are hundreds of pages. I would love to export a table that included a third column showing the page's custom tag.
Looking at Microsoft documentation, it sounds like this is possible with custom coding and the API, but I would like a simpler strategy if one exists, as I am not a sophisticated coder.
If there are alternative methods of achieving my goal than the solution I'm asking about in this question, I would be grateful to know.
Thank you.
If I understood you correctly, you want to add an extra tag(column) for different kind of url, right?
If that's the case, you can take use of case and extend statement of kusto.
Here is an sample code:
pageViews
| where name contains "WebApplication5"
| extend mytags = case(
//here, I'm using name for each condition, you can use other field as per your need.
name=="Home Page - WebApplication5","index page",
name=="Privacy Policy - WebApplication5","privacy page",
"others"
)
| project name,mytags
Then export the result. The test result is as below:
Please feel free to modify this code to meet your requirement, and also let me know if you still have more issues about that.
There is an one year old question How can I retrieve through an API *Live Metrics* of Microsoft Application Insights about is it possible to pull LiveMetrics data that appInsights generate for the application trough some API
Right now i don't see anything live related in the official documentation - https://dev.applicationinsights.io/reference . And the answer for old question was also that there is no any way to get them.
But maybe someone knows if AppInsights team plans were changed in this year and they are working on that API?
It might be really useful to pull that data in realtime through API to own alerting\metrics system to process data from different microservices\applications and display them in aggregated way in realtime.
As example we can build something like OpServer has but based on different applications and their AppInsights data .
As right now there is no any way to get it
Note: I work in Application Insights team at Microsoft.
LiveMetrics data is not persistently stored anywhere, and there is no API to retrieve it. The data is collected only when someone is actively on the Live Metrics portal page. The moment browser window is closed, data is gone as well.
If your goal is to get metrics/other in real-time, then you can do that by implementing own ITelemetryProcessor. Most people use ITelemetryProcessor to "filter" out unwanted telemetry. But that is not a rule. All telemetry passes through TelemetryProcessor, and you can chose to filter the data or do something else with it. In your case you want to send it instantly to some real-time service. In fact, LiveMetrics (internally known as QuickPulse) is implemented as a TelemetryProcessor. (https://github.com/microsoft/ApplicationInsights-dotnet/blob/develop/WEB/Src/PerformanceCollector/Perf.Shared/QuickPulseTelemetryProcessor.cs#L158)
General doc about TelemetryProcessor:
https://learn.microsoft.com/en-us/azure/azure-monitor/app/api-filtering-sampling#create-a-telemetry-processor-c
I use App Center with a Xamarin.Forms mobile application.
I use App Center's Analytics, especially Events to log a lot of information.
In order to compute those informations, I use Azure App Insights.
I have configured the export from App Center to App Insight, it is working well.
My problem is, in App Insight, I can see Events, but I cannot see the properties of the Events.
For instance, from that doc https://learn.microsoft.com/en-us/appcenter/sdk/analytics/xamarin#custom-events
I am able to see the "Video clicked" event, but not the "Category" and the "FileName".
How can I have those informations in App Insight please ?
Also, is it possible to know a relation ship between each properties ? In other words, to group all properties by date and time they have been tracked ?
Thanks in advance :)
Here are two print screen to illustrate my question :
You can use this query in Application Insights Analytics:
customEvents
| where timestamp >ago(90d)
| where name == "your custom event"
Then to see if the properties can be fetched in the results.
Does IBM Domino track the last login date for web users(UserName/Password and internet certificate)? I know the access logs contains this information but wanted to know if there may be something built into Domino (maybe in Address Book). Trying to come up with a method to disable web accounts that have not accessed a domino server in a specified time period.
Thanks,
Kev
The User Activity area in the Database Properties picks up from the log.nsf, which is where this information is stored. But, typically, the log.nsf will only have a few days' worth of information. When I've had this requirement before, I've manually captured it via a custom login page or an initUser function I've had in applications.
One of the easiest solutions is to trigger an action from a live web page that generates a database.nsf?openagent event.
like:
or
Ideally you've use the openagent to print a content type and a response, but if you don't browsers do pretty well with invalid responses from servers.
inside your "myagent" you will have the users name available to you to write it to a document.
Your next challenge will be in getting the agent to trigger, but, not too often, ideally only on login.
When a user uses a custom login form it submits the username/password and redirection url in POST method. You could change that to ...?openagent&nexturl=/blablabla.nsf
Your tiny little agent would run one and only one time upon login and update a document in a your custom logging database.
That's a developer's solution.
There are also admin solutions. The server does keep track of active web sessions, but, it does not drop them into the log.nsf like it does upon session ending for a notes session. I don't think it would be too much work from an admin standpoint to get that information there are a lot of event triggers available to you. It's just been way too long since I worked on any server that anyone cared about statistics.
We've got a site with two types of users:
Guests
Registered users
What we are looking for is a method to track both types of users within just one Google Analytics profile. We believe a registered user stays more in the site and has a higher page view count that a guest.
Could this be possible within just one profile?
Could there be a way to show custom reports in the profile page to show both user's average time and guests average time?
I know Analytics is such a powerful application, but I'm no guru and I couldn't find anything on Google.
Thanks.
Bounty Update
I know it has to do with filters. In your answer please share code and step-by-step instructions.
You can use custom variables in GA to track different types of users. Take a look at this example in the GA docs for more information. http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html#examples
This is how I would do it:
When the user session starts, if the user is not a registered user, set a custom variable like so:
pageTracker._setCustomVar(
1, // This custom var is set to slot #1
"User Type", // The name of the custom varaible
"Guest", // Sets the value of "User Type" to "Guest" for non registered users
2 // Sets the scope to session-level
);
pageTracker._trackPageview();
After the user logs in, use the following code.
pageTracker._setCustomVar(
1,
"User Type",
"Registered User",
2
);
pageTracker._trackPageview();
Now you should be able to see User Type as a custom variable in your reports.
Hope this helps.
what you will need to do is amend the google script at the bottom of your page when it loads to show the state of this custom value.
take a look at for more info.
http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html
what i think you atually want to do is more custom visitor segmentation.
http://code.google.com/apis/analytics/docs/tracking/gaTrackingVisitorSegments.html