Go to your top level public folder
Open the
index.htmlfile and paste your script.
For more details regarding how to add a JS script into a react application please visit this link: https://www.codingdeft.com/posts/react-add-script/(opens in a new tab).