I am having issues placing an event snippet in on my thank you-page. The site is built in GatsbyJS. My thought was placing the event snippet in using React helmet but can't seem to figure out how to do it correctly. I've tried all different things but neither seems to work:
<Helmet>
<script>
gtag('event', 'conversion', {'send_to': 'AW-MYID'});
</script>
</Helmet>
<Helmet>
<script
gtag('event', 'conversion', {'send_to': 'AW-MYID'});
/>
</Helmet>
<Helmet>
<script>
{`
gtag('event', 'conversion', {'send_to': 'AW-MYID'});
`}
</script>
</Helmet>