
     import {onINP} from 'https://unpkg.com/web-vitals@4/dist/web-vitals.attribution.js?module';
     const LOGGER_TOKEN = '1776451058171.ebc848d17db071628cc11a3ffb6a9fc30390d5a1eb3564f619dcbf8b04a1df73';
     const LOGGER_URI = 'https://log.citymagazine.si/';
     const uri = location.pathname;
     onINP(({value, attribution}) => {
      
      //delete attribution.processedEventEntries;
      //delete attribution.longAnimationFrameEntries;

      console.log('INP:', value, 'Attribution:', attribution); // Za debug v konzoli
      // Pošlji v analitiko: include short-lived signed token to prevent simple forgery
      const payload = JSON.stringify({ value, attribution, uri, _token: LOGGER_TOKEN });
      navigator.sendBeacon(LOGGER_URI + 'log', payload);
     });
  