Ezoic Employee
Yon Hi, the script would need to be on the site header, so that it is accessible on the entire site, rather than just the blog directory. The guide I sent above should run over how to add a header with react, or your host may be able to help with that.
In terms of the ads.txt, you need to set up a redirect as I mentioned, because we dynamically load ads.txt files. The .htaccess redirect is probably the best option for you to set up. Here's a guide on that: https://www.semrush.com/blog/301-redirect-htaccess/