How can I intergate cloudflareinsights's beacon.min.js into my AMP site?

I’m hosting my AMP based website on Cloudflare with AMP Real URL. I’d like to see Browser Insights including Core Web Vitals. Currently that view tells me that there’s not enough data. I assume I’d need to integrate https://static.cloudflareinsights.com/beacon.min.js into my AMP site somehow, also maybe adjust the Content Security Policy. Can you advise me how to do that?

As far as I saw there’s no amp component even for the Google Analytics’s Core Web Vitals support. I opened a ticket: Adding support for Google Analytics's Core Web Vitals `amp-web-vitals` · Issue #31557 · ampproject/amphtml · GitHub

But apart from that I thought maybe you have an advised way for your performance metric collection. My website’s source: Csaba Toth / mrcsabatoth.gitlab.io · GitLab