Closed tmacintosh closed 6 years ago
@tmacintosh it looks like the "Vue.appInsights" property is exposed through getter "Vue.$appInsights" (code is on line 38 of src/index.js).
Follows the practices of things like Vue-Resource/axios in terms of how it's exposed. Give that a try and let me know how it goes.
it works, but the name value is not being sent correctly
Can you please provide an example of calling Applnsights.TrackEvent() from inside a component? I managed to get application insights tracking page views by following your documentation but can't figure out how to track the other metrics. I imagined all I needed to do was call Vue.appInsights.trackEvent(...) but I get an error: "Property 'appInsights' does not exist on type 'typeof Vue'".