Adding Umami Analytics

I have to put a line of code on my blog, but the JavaScript box doesn’t allow html.

Is it possible to convert this into vanilla js?

Here is it:

https://pastebin.com/6kXjcpgS

I asked Claude, here is the result:

I pasted that in the js box, but I don’t know at all if Claude is correct.

Does someone here has an idea?

NB: Umami is an open source analytics with a free plan.