The default widget code (from the "Get Code" button) will not work correctly on a Gatsby site. (https://www.gatsbyjs.org/)
First, click on the "Get Code" button within your Ometrics dashboard and copy the code. Notice the second line:
<object id="your-object-id-here">
(Your code will have lots of letters and numbers in place of "your-object-id-here".)
Copy your object id (do not include the quotes), and paste it in the code below at every location of "your-object-id-here".
Then place the updated code into your Gatsby web site header.
<object id="your-object-id-here"><script type="text/javascript">dangerouslySetInnerHTML={{__html: `var OMETRICS_WIDGET = "your-object-id-here";`,}}
</script><script type="text/javascript">dangerouslySetInnerHTML={{__html: `var HOST_URL = 'www.ometrics.com';`,}}
</script><script type="text/javascript" data-my="your-object-id-here" src="https://www.ometrics.com/widget/widget.js"></script></object>