Skip to content
Advertisement

Azure Application Insights – trackEvent with custom properties in Javascript

We are using the client-side javascript SDK (via the snippet-based integration) for Application Insights to track custom events

JavaScript

How can I add custom properties to this? Something like this?!

JavaScript

Advertisement

Answer

As seen on the JS Azure appinsights github page:

Custom properties can be included in your telemetry through the properties named argument. This can be done with any of the Track APIs.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement