ApplicationInsights-JS icon indicating copy to clipboard operation
ApplicationInsights-JS copied to clipboard

[Feature] Enable a callback to obtain the pageName as part of the analytics

Open MSNev opened this issue 2 years ago • 3 comments

Suggested approach would be to move (or duplicate) the IValueCallback capability to the analytics extension

https://github.com/microsoft/ApplicationInsights-JS/blob/3f969761a9654da534b9ab82cf13815b31ffb4ca/extensions/applicationinsights-clickanalytics-js/src/Interfaces/Datamodel.ts#L113-L121

This would enable a callback for SPA applications to programmatically derive the current page name.

MSNev avatar Feb 03 '23 17:02 MSNev

Kind of weird how after all this time this issue has not been picked up... I'm getting the same problem with SPA react application hosted as static web app, all of the pages just have the same name, makes it impossible to tell where the user has actually navigated to.

Bubelgin avatar Jul 15 '24 21:07 Bubelgin

@MSNev Any idea when this might be brought into the library?

H-Gomez avatar Aug 01 '24 15:08 H-Gomez

Not at this point, once we have scheduled the work we normally create and assign a milestone to it.

MSNev avatar Aug 01 '24 20:08 MSNev