In order to improve INP of my application, I integrated web-vitals@3/dist/web-vitals.attribution.iife.js
to get field data and work on actual interactions causing poor INP score. However in my data I see a lot of elements reported actually dont have click functionality/handlers attached. For instance there are many div/span/p
elements reported in the report. What is the reason behind such a behaviour. This basically makes improvement exercise very ineffective and lengthy. I am collecting attribution.eventTarget for the elements on which interactions happen.
attribution.eventTarget
function sendToAnalytics({name, value, rating, attribution}) {
// here I am creating req payload with element as attribution.eventTarget
}
onINP(sendToAnalytics);