Skip to content

applicationinsights-clickanalytics-js extension should allow defining which element types clicks are tracked on #1706

@gabriel-kohen-by

Description

@gabriel-kohen-by

Is your feature request related to a problem? Please describe.
In many frameworks (Under ReactJS/Angular/Vue), components are made out of elements that are not traditionally clickable. Example: Combo boxes that are defined in their popup with LI(List). We want to be able to track such clicked elements as well as the out of the box ones. See here:
https://github.com/microsoft/ApplicationInsights-JS/blob/master/extensions/applicationinsights-clickanalytics-js/src/handlers/AutoCaptureHandler.ts#L58
Example of such popular framework is React's Material UI: https://v4.mui.com/

Describe the solution you'd like
There should be a way to define in the configuration of this extension which additional elements types can be tracked.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
We had to add explicit event handlers to all these components to fire AI custom events. That creates a pretty big pollution to our code.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions