Gatsbyjs script addition

I’m looking at add an external script to gatsbyjs frontend. Any idea how to about it?
Below is the script: