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

ClickAnalyticsPlugin extension should have html tag configurability

Open trimbms opened this issue 10 months ago • 1 comments

Is your feature request related to a problem? Please describe. I'm working on a project where we wanted to use the ClickAnalyticsPlugin to capture all click events for analytics. However, we're using a framework that renames the html tags with custom names, thereby bypassing the extension's filter for 4 specific tags (with 4 different input types allowed) : extensions/applicationinsights-clickanalytics-js/src/handlers/AutoCaptureHandler.ts#L61 Also, the documentation doesn't explicitly call out the limitations to which types of clicks are to be recorded.

Describe the solution you'd like Can these tags be made to be configurable? If not, add documentation indicating which HTML tags that are clicked that will get recorded.

Describe alternatives you've considered The alternative I'm exploring is to create my own catch-all event handler with my own filter, but I'm not going to implement all of the features the ClickAnalyticsPlugin extension provides. It just seems like this could have been part of the config.

Additional context N/a

trimbms avatar Mar 29 '24 21:03 trimbms

This would be very helpful indeed. Duplicate of #2136

cherullo avatar Apr 11 '24 13:04 cherullo